// 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: { must: { term: { "user.id": "kimchy", }, }, filter: { term: { tags: "production", }, }, must_not: { range: { age: { gte: 10, lte: 20, }, }, }, should: [ { term: { tags: "env1", }, }, { term: { tags: "deployed", }, }, ], minimum_should_match: 1, boost: 1, }, }, }); console.log(response); ----