// 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: {
    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);
----
