Is it possible instead to store in your solr index a bounding box of store location + delivery radius, do a bounding box intersection between your user's point + radius (as a bounding box) and the shop's delivery bounding box. If you want further precision, the frange may work assuming it's a post-filter implementation so that you are doing heavy computation on a presumably small set of data only to filter out the corner cases around the radius circle that results.
I haven't looked at Solr's spatial querying in a while to know if this is possible or not. Cheers Amit On Sat, May 11, 2013 at 10:42 AM, smsolr <sms...@hotmail.com> wrote: > Hi Abhishek, > > I forgot to explain why it works. It uses the frange filter which is > mentioned here:- > > http://wiki.apache.org/solr/CommonQueryParameters > > and it works because it filters in results where the geodist minus the > shopMaxDeliveryDistance is less than zero (that's what the u=0 means, upper > limit=0), i.e.:- > > geodist - shopMaxDeliveryDistance < 0 > -> > geodist < shopMaxDeliveryDistance > > i.e. the geodist is less than the shopMaxDeliveryDistance and so the shop > is > within delivery range of the location specified. > > smsolr > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Need-solr-query-help-tp4061800p4062603.html > Sent from the Solr - User mailing list archive at Nabble.com. >