Added/updated snippets for docs (#2318)
This commit is contained in:
23
docs/doc_examples/fbdad6620eb645f5f1f02e3673604d01.asciidoc
Normal file
23
docs/doc_examples/fbdad6620eb645f5f1f02e3673604d01.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({
|
||||
index: "my_locations",
|
||||
query: {
|
||||
bool: {
|
||||
must: {
|
||||
match_all: {},
|
||||
},
|
||||
filter: {
|
||||
geo_distance: {
|
||||
distance: "12km",
|
||||
"pin.location": "drm3btev3e86",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user