RE: Re: Custom scores and sort

2022-03-25 Thread Claude Lepère
sort the TopFieldDocs hits not the final score? I agree with you, I must conclude that my CustomScoreQuery subclass breaks some Lucene assumptions. About your last question about the LongDistanceFeatureQuery, I don’t know it, it is not in the version 5 of Lucene I use. Claude Lepère From

Lucene 5.2.1 and Java 17

2023-02-13 Thread Claude Lepère
Hi all. We are using Lucene 5.2.1 with Java 8. Will there be compatibility problems when upgrading to Java 17 while keeping Lucene 5.2.1 in a first stage? Many thanks in advance. Claude Lepère

NumericRangeQuery in Lucene 5.5.5: replacing the deprecated setBoost while keeping the NumericRange type?

2023-11-25 Thread Claude Lepère
Hi. We are using Lucene 5.5.5 where setBoost is deprecated for all Query types. How to set the boost of a NumericRangeQuery while preserving the NumericRangeQuery type? BoostQuery doesn't allow this and I haven't found a way. Thanks for your help. Claude Lepère

Re: NumericRangeQuery in Lucene 5.5.5: replacing the deprecated setBoost while keeping the NumericRange type?

2023-11-25 Thread Claude Lepère
your help. Claude Lepère On Sat, Nov 25, 2023 at 3:14 PM Mikhail Khludnev wrote: > Hello Claude, > Wrap it by BoostQuery. see > https://lucene.apache.org/core/6_0_0/MIGRATE.html > > > On Sat, Nov 25, 2023 at 2:46 PM Claude Lepère > wrote: > > > Hi. >

Re: NumericRangeQuery in Lucene 5.5.5: replacing the deprecated setBoost while keeping the NumericRange type?

2023-11-26 Thread Claude Lepère
working with the deprecated setBoost and we wanted to keep modifications to a minimum. It's clear we will have to change. Claude Lepère On Sun, Nov 26, 2023 at 12:03 PM Uwe Schindler wrote: > Hi, > > Lucene 5 removed the way to boost queries on its own. You have to live > with