LUCENE-6730: Hyper-parameter c is ignored in term frequency NormalizationH1

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1695732 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2015-08-13 16:10:07 +00:00
parent 5af08f7211
commit 1e0e15af6c
2 changed files with 6 additions and 1 deletions

View File

@ -61,6 +61,11 @@ Optimizations
* LUCENE-6720: ValueSourceScorer, returned from
FunctionValues.getRangeScorer(), now uses TwoPhaseIterator. (David Smiley)
Bug Fixes
* LUCENE-6730: Hyper-parameter c is ignored in term frequency NormalizationH1.
(Ahmet Arslan via Robert Muir)
Other
* LUCENE-6174: Improve "ant eclipse" to select right JRE for building.

View File

@ -48,7 +48,7 @@ public class NormalizationH1 extends Normalization {
@Override
public final float tfn(BasicStats stats, float tf, float len) {
return tf * stats.getAvgFieldLength() / len;
return tf * c * stats.getAvgFieldLength() / len;
}
@Override