You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by sidhant92 <si...@hotmail.com> on 2017/01/13 15:49:13 UTC

Filter By Distance and get the Distance

In Lucene i am using custom scoring by overriding the custom score provider.
Now what i want to achieve is that to my regular boolean query i want to add
a distance filter which gives only those documents which are within a
certain distance from the user lat long. First, how do put the distance
filter to my regular boolean query? Second, would it be possible to get
those distances in my custom scoring function as well or i need to calculate
the distance again?



--
View this message in context: http://lucene.472066.n3.nabble.com/Filter-By-Distance-and-get-the-Distance-tp4313844.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org