tarohi24 / bowi_archive

BoW Improved
MIT License
1 stars 0 forks source link

Least diff from Elasticsearch scoring #15

Open tarohi24 opened 4 years ago

tarohi24 commented 4 years ago

score(q,d) =
            queryNorm(q)
          * coord(q,d)
          * SUM (
                tf(t in d),
                idf(t)²,
                t.getBoost(),
                norm(t,d)
                        ) (t in q)
tarohi24 commented 4 years ago

score(q,d) is the relevance score of document d for query q. queryNorm(q) is the query normalization factor. coord(q,d) is the coordination factor. The sum of the weights for each term t in the query q for document d. tf(t in d) is the term frequency for term t in document d. idf(t) is the inverse document frequency for term t. t.getBoost() is the boost that has been applied to the query. norm(t,d) is the field-length norm, combined with the index-time field-level boost, if any.

referred from: https://www.compose.com/articles/how-scoring-works-in-elasticsearch/

tarohi24 commented 4 years ago

No, the function above is a classic one, and no longer is default.