Added/updated snippets for docs (#2318)
This commit is contained in:
23
docs/doc_examples/bd1e55b8cb2ca9e496e223e717d76640.asciidoc
Normal file
23
docs/doc_examples/bd1e55b8cb2ca9e496e223e717d76640.asciidoc
Normal file
@ -0,0 +1,23 @@
|
||||
// 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: {
|
||||
match_all: {},
|
||||
},
|
||||
filter: {
|
||||
geo_polygon: {
|
||||
"person.location": {
|
||||
points: ["40, -70", "30, -80", "20, -90"],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user