Re: LongDistanceFeatureQuery for DoublePoint

2022-04-01 Thread Puneeth Bikkumanla
Hello,

Just wanted to bump this email again because it might have been lost since
there's been no activity on it for the past week+.

On Wed, Mar 23, 2022 at 3:04 PM Puneeth Bikkumanla 
wrote:

> 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 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  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
>>  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
>>
>>


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 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  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
>  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
>
>


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 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
 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