* Added generate-docs-examples script * Added doc_examples folder wth the initial examples
32 lines
507 B
Plaintext
32 lines
507 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({
|
|
index: 'bank',
|
|
body: {
|
|
query: {
|
|
bool: {
|
|
must: [
|
|
{
|
|
match: {
|
|
age: '40'
|
|
}
|
|
}
|
|
],
|
|
must_not: [
|
|
{
|
|
match: {
|
|
state: 'ID'
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
})
|
|
console.log(response)
|
|
----
|
|
|