Re: Doing spatial search on multiple location points

2014-03-18 Thread Smiley, David W.
Varun, You could use a function query involving “min” with a comma-separated list of geodist clauses. See https://cwiki.apache.org/confluence/display/solr/Spatial+Search “Boost Nearest Results”. You’d replace the geodist() in there with min(geodist(45.15,-93.85),geodist(50.2,22.3),…) (etc.) ~

Re: Doing spatial search on multiple location points

2014-03-18 Thread Varun Gupta
Hi David, Thanks for the quick reply. As I haven't migrated to 4.7 (I am still using 4.6), I tested using OR clause with multiple geofilt query based phrases and it seems to be working great. But I have one more question: How do I boost the score of the matching documents based on geodist? How wi

Re: Doing spatial search on multiple location points

2014-03-17 Thread Smiley, David W.
Absolutely. The most straight-forward approach is to use the default query parser comprised of OR clauses of geofilt query parser based clauses. Another way to do it in Solr 4.7 that is probably faster is to use WKT with the custom “buffer" extension: myLocationRptField:"BUFFER(MULTIPOINT(x y, x

Doing spatial search on multiple location points

2014-03-17 Thread Varun Gupta
Hi, I am trying to find out if solr supports doing a spatial search on multiple location points. Basically, while querying solr, I will be giving multiple lat-long points and solr will be returning documents which are closer to any of the given points. If this is not possible, is there any way to