mirror of https://github.com/apache/lucene.git
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:
parent
c6821e1a19
commit
ec4015f029
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue