Skip to content

Commit 83436de

Browse files
committed
Use approximation instead of subScores
1 parent 33ee167 commit 83436de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/ltr/QueryFeatureExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void addFeatures(Map<String, Object> featureMap, int docId) throws IOExce
7474
if (approximation.docID() != docId) {
7575
return;
7676
}
77-
var w = (FeatureDisiWrapper) subScorers.topList();
77+
var w = (FeatureDisiWrapper) approximation.topList();
7878
for (; w != null; w = (FeatureDisiWrapper) w.next) {
7979
if (w.twoPhaseView == null || w.twoPhaseView.matches()) {
8080
featureMap.put(w.featureName, w.scorable.score());

0 commit comments

Comments
 (0)