LUCENE-6446: Fix explanations of BM25Similarity.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1675133 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrien Grand 2015-04-21 15:15:08 +00:00
parent c6821e1a19
commit ec4015f029
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ public class BM25Similarity extends Similarity {
subs.add(Explanation.match(0, "parameter b (norms omitted for field)"));
return Explanation.match(
(freq.getValue() * (k1 + 1)) / (freq.getValue() + k1),
"parameter b (norms omitted for field)", subs);
"tfNorm, computed from:", subs);
} else {
float doclen = decodeNormValue((byte)norms.get(doc));
subs.add(Explanation.match(b, "parameter b"));