Re: LongDistanceFeatureQuery for DoublePoint

2022-03-23 Thread Puneeth Bikkumanla
Hello Adrien, Thanks for the quick response! The doubles can be pretty much anything. We're implementing something very similar to the Distance Feature Query in Elastic but want it to work with d

Re: Re: Custom scores and sort

2022-03-23 Thread Adrien Grand
Sorry Claude, but I have some trouble following what you are doing with your CustomScoreQuery. It feels like your query is doing something that breaks some assumptions that Lucene makes. Have you looked at existing ways that Lucene supports boosting documents by recency, such as putting a LongDist

Re: LongDistanceFeatureQuery for DoublePoint

2022-03-23 Thread Adrien Grand
Hi Puneeth, Doubles are always a bit more tricky due to rounding for arithmetic operations, but this should still be doable. Out of curiosity, what sort of data do your double fields store? This query had been added with the idea that it would be useful for timestamp fields in order to boost hits