I'm glad to be of help. This is all possible using Solr 4 without programatic customization. As always remember the docs: http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4#Indexing That has an example of index a circle. Not much to it.
The only aspect of the SpatialRecursivePrefixTree field that I don't consider ready for production is retrieving distances, i.e. for sorting or relevancy or direct retrieval in results. See: https://issues.apache.org/jira/browse/LUCENE-4698 If you need it but don't have a lot of data or realtime-search requirements then it's probably fine. By "legacy tutorial"; what do you refer to? ~ David stefanocorsi wrote > Thank you very much David, > > your answer is really full of interesting inspiration. To be honest, many > of the spatial concepts you were writing about are unknown or obscure to > me, I was only aware of the !geofilt filter with a "distance" parameter, > but I wasn't aware, for example, that I could index "circles". Do you need > programmatic structures or can this be configured in > schema.xml/solrconfig.xml? > > Is it all confined to Solr 4? Is it actually stable for production? > > Anyway I'll try to find some good tutorial on the general concepts of > spatial search with solr, the legacy tutorial is actually very poor. > > Thank you again! > > S. ----- Author: http://www.packtpub.com/apache-solr-3-enterprise-search-server/book -- View this message in context: http://lucene.472066.n3.nabble.com/Distance-Range-query-tp4034977p4035422.html Sent from the Solr - User mailing list archive at Nabble.com.