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

Using FunctionScoreQuery vs CustomScoreQuery

2020-02-20 Thread Kevin Manuel
Hi, I'm working on upgrading Lucene from 7.0.0 to the latest 8.4.1. We're using a CustomScoreQuery to score docs/results differently based on their distance from a the user's location and also some other factors like the type of the document (i.e. say if we stored documents of places to eat, a res