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:48:48 UTC

[lucene] branch branch_9x 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 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 9188b7f4c49 LUCENE-10589: increase upper bound of test range query (#920)
9188b7f4c49 is described below

commit 9188b7f4c49f6a3c6e9a2580916230e56c4a41d1
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);
           }
         }
       }