You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by to...@apache.org on 2022/05/25 08:43:33 UTC
[lucene] branch main updated: LUCENE-10589: increase upper bound of test range query (#920)
This is an automated email from the ASF dual-hosted git repository.
tomoko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/main by this push:
new 2620b5669f9 LUCENE-10589: increase upper bound of test range query (#920)
2620b5669f9 is described below
commit 2620b5669f9a3ccb90439309723314295a850b29
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Wed May 25 17:43:27 2022 +0900
LUCENE-10589: increase upper bound of test range query (#920)
---
lucene/core/src/test/org/apache/lucene/search/TestKnnVectorQuery.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lucene/core/src/test/org/apache/lucene/search/TestKnnVectorQuery.java b/lucene/core/src/test/org/apache/lucene/search/TestKnnVectorQuery.java
index d698bbe668a..16304ff578d 100644
--- a/lucene/core/src/test/org/apache/lucene/search/TestKnnVectorQuery.java
+++ b/lucene/core/src/test/org/apache/lucene/search/TestKnnVectorQuery.java
@@ -551,7 +551,7 @@ public class TestKnnVectorQuery extends LuceneTestCase {
numDocs));
// Test an unrestrictive filter and check we use approximate search
- Query filter3 = IntPoint.newRangeQuery("tag", lower, lower + 150);
+ Query filter3 = IntPoint.newRangeQuery("tag", lower, 200);
results =
searcher.search(
new ThrowingKnnVectorQuery("field", randomVector(dimension), 5, filter3),
@@ -565,7 +565,7 @@ public class TestKnnVectorQuery extends LuceneTestCase {
assertEquals(1, fieldDoc.fields.length);
int tag = (int) fieldDoc.fields[0];
- assertTrue(lower <= tag && tag <= lower + 150);
+ assertTrue(lower <= tag && tag <= 200);
}
}
}