LUCENE-10589: increase upper bound of test range query (#920)

This commit is contained in:
Tomoko Uchida 2022-05-25 17:43:27 +09:00 committed by GitHub
parent 893018ffe9
commit 2620b5669f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}
}