Added/updated snippets for docs (#2318)
This commit is contained in:
19
docs/doc_examples/f14d0e4a280fee540e8e5f0fc4d0e9f1.asciidoc
Normal file
19
docs/doc_examples/f14d0e4a280fee540e8e5f0fc4d0e9f1.asciidoc
Normal file
@ -0,0 +1,19 @@
|
||||
// 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",
|
||||
size: 0,
|
||||
aggs: {
|
||||
grouped: {
|
||||
geotile_grid: {
|
||||
field: "location",
|
||||
precision: 6,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user