Add necessary assertion in CheckHits#doCheckMaxScores (#13088)

This commit is contained in:
Zhang Chao 2024-02-10 01:28:18 +08:00 committed by Adrien Grand
parent bb32700205
commit 6a5dde6430
1 changed files with 1 additions and 0 deletions

View File

@ -734,6 +734,7 @@ public class CheckHits {
continue;
}
if (s2 == null) {
assertTrue(s1.iterator().nextDoc() == DocIdSetIterator.NO_MORE_DOCS);
continue;
}
TwoPhaseIterator twoPhase1 = s1.twoPhaseIterator();