Skip to content

Commit 7b81006

Browse files
committed
splotless
1 parent cbd13b9 commit 7b81006

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public void onFailure(Exception e) {
209209
RankFeatureDoc[] rankDocs = new RankFeatureDoc[inputDocs.length];
210210
for (int i = 0; i < inputDocs.length; i++) {
211211
ScoreDoc doc = inputDocs[i];
212-
rankDocs[i] = new RankFeatureDoc(doc.doc, Float.isNaN(doc.score) ? 1f / (i+1) : doc.score, doc.shardIndex);
212+
rankDocs[i] = new RankFeatureDoc(doc.doc, Float.isNaN(doc.score) ? 1f / (i + 1) : doc.score, doc.shardIndex);
213213
}
214214
RankDoc[] topResults = rankFeaturePhaseRankCoordinatorContext.rankAndPaginate(rankDocs, false);
215215
SearchPhaseController.ReducedQueryPhase reducedRankFeaturePhase = newReducedQueryPhaseResults(

0 commit comments

Comments
 (0)