Re: Use custom score in ConstantScoreQuery

2019-12-10 Thread Stamatis Zampetakis
ampetakis > > Sent: Monday, December 9, 2019 10:42 AM > > To: java-user@lucene.apache.org > > Subject: Re: Use custom score in ConstantScoreQuery > > > > Thanks for you reply Adrien! > > Can you clarify what is the second way? > > At the moment I haven't f

RE: Use custom score in ConstantScoreQuery

2019-12-09 Thread Uwe Schindler
...@thetaphi.de > -Original Message- > From: Stamatis Zampetakis > Sent: Monday, December 9, 2019 10:42 AM > To: java-user@lucene.apache.org > Subject: Re: Use custom score in ConstantScoreQuery > > Thanks for you reply Adrien! > Can you clarify what is the second way? > At

Re: Use custom score in ConstantScoreQuery

2019-12-09 Thread Aditya Varun Chadha
By wrapping the constant score query inside a BoostQuery? That’s how elasticsearch handles boosts on arbitrary queries, for example. On Mon 9. Dec 2019 at 10:42, Stamatis Zampetakis wrote: > Thanks for you reply Adrien! > Can you clarify what is the second way? > At the moment I haven't found

Re: Use custom score in ConstantScoreQuery

2019-12-09 Thread Stamatis Zampetakis
Thanks for you reply Adrien! Can you clarify what is the second way? At the moment I haven't found a way (apart from creating my own Query classes) to say that a query will always return a score of 0.5 for each document. On Mon, Dec 9, 2019 at 8:16 AM Adrien Grand wrote: > Hi Stamatis, > > I

Re: Use custom score in ConstantScoreQuery

2019-12-08 Thread Adrien Grand
Hi Stamatis, I personally like the current way things work. If we added the ability to set a custom score on ConstantScoreQuery, then we'd end up with two ways to do the same thing, which I like to avoid whenever possible. On Sun, Dec 8, 2019 at 10:07 PM Stamatis Zampetakis wrote: > > Small

Re: Use custom score in ConstantScoreQuery

2019-12-08 Thread Stamatis Zampetakis
Small reminder. Any input on this? Thanks, Stamatis On Mon, Dec 2, 2019 at 12:10 PM Stamatis Zampetakis wrote: > Hi all, > > Currently ConstantScoreQuery [1] returns a constant score equal to 1 for > every document that matches the query. > > I would like to use the ConstantScoreQuery but with