My question is about the textScore in full text queries. This is self-managed. I’m running MongoDB 6.0 currently.
I understand this is a “relevance” score. But is it possible to convert the number into an absolute number? e.g. for a percentage match to display to users.
It seems that the upper limit of this value depends on the input string, possibly on the length? Or the number of words?
For example, an exact match on the text “Cat” gives me a score of 1.1
but an exact match on “A cat sits on a mat” gives me 2.0
. Removing stop words from my query (cat sits mat) also gives 2.0
. Can anyone explain more officially?
If I can predict from my query the maximum possible textScore, then presumably I can compute a 0.0 to 1.0
relevance value?