Re: How can I use FunctionScoreQuery to replace CustomScoreQuery?

2019-01-26 Thread Mikhail Khludnev
You can see how DoubleValuesSource.FieldValuesSource reads numeric field. Custom code can read string identifier, and run custom logic, then it can wrap a query with FunctionScoreQuery.boostByValue(Query, DoubleValuesSource). On Sat, Jan 26, 2019 at 7:01 PM MarcoR wrote: > Hi, > > Based on every

How can I use FunctionScoreQuery to replace CustomScoreQuery?

2019-01-26 Thread MarcoR
Hi, Based on everything I read so far, FunctionScoreQuery is the way forward for boosting. My problem is, even though CustomScoreQuery's documentation suggests that FunctionScoreQuery should be used instead, I cannot find a way to use FunctionScoreQuery in the same way I can use CustomScoreQuer