* Added generate-docs-examples script * Added doc_examples folder wth the initial examples
29 lines
480 B
Plaintext
29 lines
480 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_all: {}
|
|
},
|
|
filter: {
|
|
range: {
|
|
balance: {
|
|
gte: 20000,
|
|
lte: 30000
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
console.log(response)
|
|
----
|
|
|