[
https://issues.apache.org/jira/browse/SOLR-773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12777549#action_12777549
]
Gijs Kunze commented on SOLR-773:
---------------------------------
I've written a Solr plugin which uses a field with the computed hilbert space
filling curve to cluster resulting documents so they can be efficiently placed
on a google map control. Basically given a precision and a southwest lat/lng
and northeast lat/lng bounding box it returns a group of clusters with an exact
lat/lng location, a bounding box for all the documents in the cluster and the
count of the number of documents in that cluster. Depending on settings given
to the application (number of results in docset and/or size of the requested
bounding box) it will instead to return the list of documents so that when
you're zoomed in far enough the clusters transform into actual distinct
documents.
My implementation is very specific to our website and is not generally
applicable:
- The calculation of the hilbert space filling curve value is done by our
index-script
- Several field names are hardcoded
- It uses a hardcoded precision for the hilbert value (30 bits)
- It still uses highly inefficient methods for some actions (it stores the
value in a sint field instead of a trie int as I was waiting for Solr 1.4 to be
released before continuing working on the plugin, but now I'll have to
find/make the time)
I think LocalSolr would really benefit from something like this as I think when
you're storing geographic data displaying it on a map (whether it be google
maps, bing maps, open streetview or whatever) is something a lot of people will
want to do (and I love full faceted browsing on a map).
My implementation can be seen running on:
http://www.mysecondhome.co.uk/search.html?view=map (It's not perfect, there are
small bugs but in general it works fast enough on our dataset)
> Incorporate Local Lucene/Solr
> -----------------------------
>
> Key: SOLR-773
> URL: https://issues.apache.org/jira/browse/SOLR-773
> Project: Solr
> Issue Type: New Feature
> Reporter: Grant Ingersoll
> Assignee: Grant Ingersoll
> Priority: Minor
> Fix For: 1.5
>
> Attachments: exampleSpatial.zip, lucene-spatial-2.9-dev.jar,
> lucene.tar.gz, SOLR-773-local-lucene.patch, SOLR-773-local-lucene.patch,
> SOLR-773-local-lucene.patch, SOLR-773-local-lucene.patch,
> SOLR-773-local-lucene.patch, SOLR-773-spatial_solr.patch, SOLR-773.patch,
> SOLR-773.patch, solrGeoQuery.tar, spatial-solr.tar.gz
>
>
> Local Lucene has been donated to the Lucene project. It has some Solr
> components, but we should evaluate how best to incorporate it into Solr.
> See http://lucene.markmail.org/message/orzro22sqdj3wows?q=LocalLucene
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.