// 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);
----
