Skip to content

Commit b4e7c70

Browse files
committed
Renamed the variable
1 parent c5187bf commit b4e7c70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ public ScoreDoc[] normalizeScores(ScoreDoc[] docs) {
3232
}
3333
double sumOfSquares = 0.0;
3434
boolean atLeastOneValidScore = false;
35-
for (ScoreDoc rd : docs) {
36-
if (Float.isNaN(rd.score) == false) {
35+
for (ScoreDoc doc : docs) {
36+
if (Float.isNaN(doc.score) == false) {
3737
atLeastOneValidScore = true;
38-
sumOfSquares += rd.score * rd.score;
38+
sumOfSquares += doc.score * doc.score;
3939
}
4040
}
4141
if (atLeastOneValidScore == false) {

0 commit comments

Comments
 (0)