Re: Distance Range query

2013-01-22 Thread David Smiley (@MITRE.org)
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#IndexingThat has an example of index a circle. Not much to it. The only aspect of the SpatialRecursivePrefixTree

Re: Distance Range query

2013-01-22 Thread stefanocorsi
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

Re: Distance Range query

2013-01-21 Thread David Smiley (@MITRE.org)
Hi Stefano. I answered someone's question on stackoverflow which is basically the same question you have: http://stackoverflow.com/questions/13723891/lucene-4-0-spatial-calculate-max-distance-dynamically-using-indexed-documets/13764793#13764793 Essentially, you should index circles and then searc