// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples

[source, js]
----
const response = await client.search({
  query: {
    has_child: {
      type: "child",
      query: {
        match_all: {},
      },
      max_children: 10,
      min_children: 2,
      score_mode: "min",
    },
  },
});
console.log(response);
----
