mirror of https://github.com/apache/lucene.git
LUCENE-7108: this test was running the wrong range query
This commit is contained in:
parent
15fdfd3caa
commit
4a4db23362
|
@ -133,7 +133,7 @@ public class Test2BPoints extends LuceneTestCase {
|
|||
w.forceMerge(1);
|
||||
DirectoryReader r = DirectoryReader.open(w);
|
||||
IndexSearcher s = new IndexSearcher(r);
|
||||
assertEquals(numDocs, s.count(LongPoint.newRangeQuery("long", new long[] {Long.MIN_VALUE, Long.MAX_VALUE}, new long[] {Long.MIN_VALUE, Long.MAX_VALUE})));
|
||||
assertEquals(numDocs, s.count(LongPoint.newRangeQuery("long", new long[] {Long.MIN_VALUE, Long.MIN_VALUE}, new long[] {Long.MAX_VALUE, Long.MAX_VALUE})));
|
||||
assertTrue(r.leaves().get(0).reader().getPointValues().size("long") > Integer.MAX_VALUE);
|
||||
r.close();
|
||||
w.close();
|
||||
|
|
Loading…
Reference in New Issue