Skip to content

Commit a777601

Browse files
committed
Temporary fix for minmax bug
1 parent e33cebf commit a777601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/rank-rrf/src/main/java/org/elasticsearch/xpack/rank/linear/MinMaxScoreNormalizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public ScoreDoc[] normalizeScores(ScoreDoc[] docs) {
5454
for (int i = 0; i < docs.length; i++) {
5555
float score;
5656
if (minEqualsMax) {
57-
score = min;
57+
score = 1.0f; // TODO: Address bug in separate PR
5858
} else {
5959
score = (docs[i].score - min) / (max - min);
6060
}

0 commit comments

Comments
 (0)