lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Sokolov <msoko...@gmail.com>
Subject Re: Custom Similarity
Date Tue, 16 Jan 2018 11:25:58 GMT
Have a look at Expressions class. It compiles JavaScript that can reference
other values and can be used for ranking.

On Jan 16, 2018 4:58 AM, "Dwaipayan Roy" <dwaipayan.roy@gmail.com> wrote:

> ​I want to make a scoring function that will score the documents by the
> following function:
> given Q = {q1, q2, ... }
> score(D,Q) =
>    for all qi:
>       SUM of {
>          LOG { weight_1(qi) + weight_2(qi) + weight_3(qi) }
>       }
>
> I have stored weight_1, weight_2 and weight_3 for all term of all documents
> as payload, with payload delimiter = | (pipe) during indexing.
>
> However, I am not sure on how to integrate all the weights during
> retrieval. I am sure that I have to @Override some score() but not sure
> about the exact class.
>
> Please help me here.
> ​
> Best,
> Dwaipayan..​
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message