Hi Georgios, This is possible. You need to create a similarity that stores the number of terms as a norm, and then produce scores that are equal to freq/norm at search time.
On Tue, May 21, 2024 at 8:02 PM Georgios Georgiadis <georgios.georgia...@microsoft.com.invalid> wrote: > Hi, > > I would like to extend Similarity to have the following functionality: if > the query is “A B C” and a field contains “B C” then I would like to call > that a “match” and return a score of 1 (2/2). If the query is “A B C” and > the field contains “B D” then I would like to call that a partial match and > give a score of 0.5 (1/2). Is this possible? > > Best, > > Georgios > -- Adrien