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

[source, js]
----
const response = await client.search({
  include_named_queries_score: "true",
  query: {
    bool: {
      should: [
        {
          match: {
            "name.first": {
              query: "shay",
              _name: "first",
            },
          },
        },
        {
          match: {
            "name.last": {
              query: "banon",
              _name: "last",
            },
          },
        },
      ],
      filter: {
        terms: {
          "name.last": ["banon", "kimchy"],
          _name: "test",
        },
      },
    },
  },
});
console.log(response);
----
