Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczi committed Oct 14, 2024
1 parent 899444e commit 9207d32
Showing 1 changed file with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,20 +199,17 @@ public void testRankDocsQueryEarlyTerminate() throws IOException {
{
// A single rank doc in the last segment
RankDoc[] singleRankDoc = new RankDoc[1];
singleRankDoc[0] = rankDocs[rankDocs.length-1];
singleRankDoc[0] = rankDocs[rankDocs.length - 1];
RankDocsQuery q = new RankDocsQuery(
reader,
singleRankDoc,
new Query[] { NumericDocValuesField.newSlowExactQuery("active", 1) },
new String[1],
false
reader,
singleRankDoc,
new Query[] { NumericDocValuesField.newSlowExactQuery("active", 1) },
new String[1],
false
);
var topDocsManager = new TopScoreDocCollectorManager(1, null, 0);
var col = searcher.search(q, topDocsManager);
assertThat(
col.totalHits.value,
lessThanOrEqualTo((long) (2 + rankDocs.length))
);
assertThat(col.totalHits.value, lessThanOrEqualTo((long) (2 + rankDocs.length)));
assertEqualTopDocs(col.scoreDocs, singleRankDoc);
}
}
Expand Down

0 comments on commit 9207d32

Please sign in to comment.