Filter By Distance and get the Distance

2017-01-13 Thread sidhant92
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 fil

Get values in custom scoring during document retrieval

2017-01-13 Thread sidhant92
I am using custom score provider for scoring lucene documents manually. I am doing many calculations in custom score provider to calculate the score. For example on of them is distance. So now once the scoring is done i would like to know that distance as well. Instead of computing it again cant i