Skip to content

Commit 559aa32

Browse files
committed
Stray comment
1 parent f4f13c9 commit 559aa32

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/src/main/java/org/elasticsearch/action/search/RankFeaturePhase.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,8 @@ public void onFailure(Exception e) {
204204
logger.warn("Exception computing updated ranks, continuing with existing ranks: {}", e.toString());
205205
// use the existing score docs as-is
206206
// downstream things expect every doc to have a score, so we need to infer a score here
207-
// if the doc doesn't otherwise have a score. We can use the rank.
207+
// if the doc doesn't otherwise have one. We can use the rank to infer a possible score instead (1/rank).
208208
ScoreDoc[] inputDocs = reducedQueryPhase.sortedTopDocs().scoreDocs();
209-
// use RankDoc to indicate there was a problem using the specified features
210209
RankFeatureDoc[] rankDocs = new RankFeatureDoc[inputDocs.length];
211210
for (int i = 0; i < inputDocs.length; i++) {
212211
ScoreDoc doc = inputDocs[i];

0 commit comments

Comments
 (0)