Re: Using FunctionScoreQuery vs CustomScoreQuery

2020-02-25 Thread Kevin Manuel
I see, thank you Adrien ! I'll look into it and get back to you if I have any questions. On Fri, Feb 21, 2020 at 1:45 AM Adrien Grand wrote: > Hi Kevin, > > FunctionScoreQuery can also work with dynamically-computed values, you just > need to provide it with a DoubleValuesSource that computes va

Re: Using FunctionScoreQuery vs CustomScoreQuery

2020-02-21 Thread Adrien Grand
Hi Kevin, FunctionScoreQuery can also work with dynamically-computed values, you just need to provide it with a DoubleValuesSource that computes values dynamically. The factory methods that exist in the DoubleValuesSource class all work with indexed data, but it is also possible to write a custom