Re: avgFieldLength calculation in BM25 in solr 7.4

2019-10-31 Thread Edward Ribeiro
Hi, Looking at the source code and term frequencies, it looks like: fieldLength = number of tokens prior to ngram filter processing avgFieldLength = / As you are using n-gram then 11 is the total number of terms while fieldLegth is 2. See: https://lucene.apache.org/core/7_4_0/core/org/apache

avgFieldLength calculation in BM25 in solr 7.4

2019-10-31 Thread Pedro Sousa
Hello all, I have a standard solr 7.4 installation and i have a question regarding how BM25 similarity is computed. Here is an example to describe my question 1. create core `test_core` 2. add to `test_core/conf/managed-schema`: the following field and fieldType