lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Uwe Schindler <...@thetaphi.de>
Subject Re: Lucene spatial for grid clusters
Date Thu, 06 Nov 2014 06:19:07 GMT
Hi,

If you would index additional grid ids for the bins, you could facet on them. To me, Elasticsearch's
Aggregation Module may also be a good fit.

Uwe

Am 6. November 2014 04:52:10 MEZ, schrieb Shahak Nagiel <snagiel@yahoo.com.INVALID>:
>I need a way to perform a spatial aggregation query against a
>potentially large document store in order to display summary clusters
>on a map.  The query would slice the current map extents (e.g.
>-180,-90,180,90) into a number of X and Y bins (e.g. 20 x 16) and, for
>each, seek a summary count, so that a heat map or series of clusters
>could be rendered for the grids.
>
>Given Lucene's native usage of prefix trees/geohashes, this seems to be
>a good fit.  As a user pans and zooms the map, new map extents would
>apply, so this would need to support dynamic grids.  However, snapping
>results/bins to existing geohashes (of the appropriate depth/level)
>would be fine, assuming that lines up with how the indexes are
>structured.
>
>Naively, I could just issue a series of spatial queries, one for each
>grid, and get the count.  But I wonder if there's a better way...
>
>Has anyone encountered this use case?  Any suggestions on the best/most
>efficient way to achieve?
>
>Thanks!

--
Uwe Schindler
H.-H.-Meier-Allee 63, 28213 Bremen
http://www.thetaphi.de
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message