Files
elasticsearch-js/docs/doc_examples/a1879930c1dac36a57d7f094a680420b.asciidoc
2024-07-29 17:10:05 -05:00

32 lines
607 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: "museums",
size: 0,
aggregations: {
"zoomed-in": {
filter: {
geo_bounding_box: {
location: {
top_left: "u17",
bottom_right: "u17",
},
},
},
aggregations: {
zoom1: {
geohash_grid: {
field: "location",
precision: 8,
},
},
},
},
},
});
console.log(response);
----