Avoid SimpleText codec in TestIndexSortSortedNumericDocValuesRangeQuery (#675)

The recently introduced testCount verifies that the Weight#count optimization kicks in. When SimpleText codec is used, `DocValues#unwrapSingleton` returns null which disables the optimization and makes the test fail.
This commit is contained in:
Luca Cavanna 2022-02-10 17:06:31 +01:00 committed by GitHub
parent f6cebac333
commit ea170c9fab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@ import org.apache.lucene.tests.util.LuceneTestCase;
import org.apache.lucene.tests.util.TestUtil;
import org.apache.lucene.util.BytesRef;
@LuceneTestCase.SuppressCodecs(value = "SimpleText")
public class TestIndexSortSortedNumericDocValuesRangeQuery extends LuceneTestCase {
public void testSameHitsAsPointRangeQuery() throws IOException {