Skip to content

geo_bounding_box should be smarter about how it parses geo hashes #25154

@jpountz

Description

@jpountz

Say you ran a geohash_grid aggregation and want to filter documents that fell into a particular bucket. Currently, we do not provide an easy way to do that: the user has to compute the top left and bottom right coordinates that map to this geohash.

The geo_bounding_box already accepts geohashes as input to the corners, but we just parse it into one point that belongs to the geohash cell. If instead we made sure to round correctly and parse the top-left geohash as the top-left point of the geohash and the bottm right geohash as the bottom right point of the geohash then users could just pass the same geohash as a top-left and bottom-right corner and the bounding box would match the right documents?

cc @nknize

Metadata

Metadata

Assignees

Labels

:Analytics/GeoIndexing, search aggregations of geo points and shapes>enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions