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 <https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-distance-feature-query.html> in Elastic but want it to work with doubles where the "field" can be a double value. Users could then find a set of relevant documents with "fields" that are closest to specified origin using this query. Would this feature be something that we should put up a PR for in the Lucene codebase as well?
On Wed, Mar 23, 2022 at 12:42 AM Adrien Grand <jpou...@gmail.com> wrote: > 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 by recency. What is your > use-case for adding similar functionality to double fields? > > On Wed, Mar 23, 2022 at 12:38 AM Puneeth Bikkumanla > <pbikkuma...@gmail.com> wrote: > > > > Hello, > > I was wondering if there is anything similar to the > > LongDistanceFeatureQuery for DoublePoint. We are currently converting our > > doubles into longs in order to use this feature but would like to switch > > off of that. If nothing exists, are there any immediate challenges that > > people foresee for implementing a "DoubleDistanceFeatureQuery" for > > DoublePoint? > > > > -- > Adrien > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >