// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.mjs` to generate the docs examples

[source, js]
----
const response = await client.search({
  index: "museums",
  size: 0,
  aggregations: {
    "tiles-in-bounds": {
      geohash_grid: {
        field: "location",
        precision: 8,
        bounds: {
          top_left: "POINT (4.21875 53.4375)",
          bottom_right: "POINT (5.625 52.03125)",
        },
      },
    },
  },
});
console.log(response);
----
