Understanding Elasticsearch TF/IDF score in 6.8

I was looking at the lucene TF/IDF practical scoring function vs what is reported in the ES explain API. For ES 6.8, it used lucence 7.x for calculating the TF/IDF score which has a squared IDF term

However, when I look at the explain results for 6.8, I just see one idf term instead of a squared idf.

Am I missing something or is there a missing idf term in explain?

By default I believe Elasticsearch 6.8 uses BM25 instead of TF/IDF. What does your query look like?

I have set the similarity module to classic i.e. TF/IDF

The query has just a single term.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.