File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
server/src/main/java/org/elasticsearch/action/search Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff 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 ];
You can’t perform that action at this time.
0 commit comments