The end result is a grid of counts that corresponds to how many indexed shapes fit the query area. Cells at any level along the way that don’t have hits are ignored for the rest of the recursion. It does this recursively to burrow down from parent cells that have hits until it achieves the desired granularity of the heatmap. In fact, the only ES query that supports the geoshape type is a geoshape query, and Elasticsearch doesn’t come with any aggregations over geoshapes.Unlike geohash grids, Solr’s heatmap facets use Lucene’s “recursive prefix tree” (RPT) that allows quick categorization of whether a given heatmap cell overlaps an indexed shape. Geohash queries don’t support fields other than geopoints, so you’re not going to be able to distinguish between hits in irregular shaped areas (like geopolitical borders).
0 Comments
Leave a Reply. |