You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2024/02/09 17:35:04 UTC
(lucene) branch branch_9x updated: Add necessary assertion in CheckHits#doCheckMaxScores (#13088)
This is an automated email from the ASF dual-hosted git repository.
jpountz pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new 6a5dde64309 Add necessary assertion in CheckHits#doCheckMaxScores (#13088)
6a5dde64309 is described below
commit 6a5dde6430973d71bde10acd644ee44962cec8a0
Author: Zhang Chao <80...@qq.com>
AuthorDate: Sat Feb 10 01:28:18 2024 +0800
Add necessary assertion in CheckHits#doCheckMaxScores (#13088)
---
.../src/java/org/apache/lucene/tests/search/CheckHits.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/search/CheckHits.java b/lucene/test-framework/src/java/org/apache/lucene/tests/search/CheckHits.java
index 9d708339d51..e01fc3877a8 100644
--- a/lucene/test-framework/src/java/org/apache/lucene/tests/search/CheckHits.java
+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/search/CheckHits.java
@@ -734,6 +734,7 @@ public class CheckHits {
continue;
}
if (s2 == null) {
+ assertTrue(s1.iterator().nextDoc() == DocIdSetIterator.NO_MORE_DOCS);
continue;
}
TwoPhaseIterator twoPhase1 = s1.twoPhaseIterator();