On 11 October 2012 23:55, Harish Rawat <harish.s.ra...@gmail.com> wrote:
> Sorry for not being clear. Here are more details
>
> 1.) The results are displayed in geographical map
> 2.) Each document has latitude,  longitude field and other fields that can
> be searched on
> 3.) The search will be done for all documents within a lat/long range.
> 4.) The lat/lon range is divided into N*N (lets say 64 grids) and for each
> grid we want following
> a) no. of documents in that grid
> b.) top K documents in that grid
> c.) avg of latitude and longitude value for all results in that grid
>
> In lucene I can implement my own custom collector and do all the
> calculations listed in #4. I wanted to understand the best way to implement
> (or use existing if any :) this logic in solr
>
[...]

Hmm, I am  not that familiar with Lucene, so maybe someone
else will chip in with advice.

However, what you describe in point 4 seems to be a clustering
strategy for geographical points. Typically, we use pre-defined
strategies from OpenLayers ( http://openlayers.org ), or custom
strategies.

Regards,
Gora

Reply via email to