LUCENE-8012: LTR contrib needs to use float values in explanations

This commit is contained in:
Alan Woodward 2018-01-02 13:56:42 +00:00
parent caa731a333
commit a56cb42fde
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ public class LinearModel extends LTRScoringModel {
"weight on feature")); "weight on feature"));
featureDetails.add(featureExplain); featureDetails.add(featureExplain);
details.add(Explanation.match(featureExplain.getValue().doubleValue() details.add(Explanation.match(featureExplain.getValue().floatValue()
* featureToWeight[index], "prod of:", featureDetails)); * featureToWeight[index], "prod of:", featureDetails));
index++; index++;
} }