Skip to content

Commit 7adae60

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 6561b72 commit 7adae60

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,11 @@ protected RankDoc[] combineInnerRetrieverResults(List<ScoreDoc[]> rankResults, b
197197
if (minScore == DEFAULT_MIN_SCORE) {
198198
filteredResults = sortedResults;
199199
} else {
200-
filteredResults = Arrays.stream(sortedResults)
201-
.filter(doc -> {
202-
// Ensure we're comparing against the final combined score
203-
float finalScore = doc.score;
204-
return finalScore >= minScore;
205-
})
206-
.toArray(LinearRankDoc[]::new);
200+
filteredResults = Arrays.stream(sortedResults).filter(doc -> {
201+
// Ensure we're comparing against the final combined score
202+
float finalScore = doc.score;
203+
return finalScore >= minScore;
204+
}).toArray(LinearRankDoc[]::new);
207205
}
208206
// trim the results if needed, otherwise each shard will always return `rank_window_size` results.
209207
LinearRankDoc[] topResults = new LinearRankDoc[Math.min(rankWindowSize, filteredResults.length)];

0 commit comments

Comments
 (0)