Geohash Aggregation Question

Is there a way to create a geohash aggregation with counts for subtypes/numeric ranges within that geohash. For example if I have a collection of buildings and I want to know for each geohash, what is the count of office, retail, and residential buildings. Or for each geohash I want to know the count of buildings within that area that have 1 floor, 2-3 floors, or 4+ floors.

Or would I need to execute 3 different requests to Elasticsearch to satisfy that need?

Thanks in advance!

Hi John,
Like other "bucket" aggregations, the geohash_grid aggregation can nest child aggregations underneath to create sub-buckets. There's an example here in this blog post.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.