Files
elasticsearch-js/docs/doc_examples/f8a0010753b1ff563dc42d703902d2fa.asciidoc
2024-07-29 17:10:05 -05:00

46 lines
768 B
Plaintext

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