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
Say you ran a
geohash_gridaggregation 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_boxalready 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