Skip to content

Commit 0169c1e

Browse files
authored
Fix test that was implicitly assuming simple writer config that would not rearrange docids (#14122)
1 parent 5fd2e70 commit 0169c1e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lucene/misc/src/test/org/apache/lucene/misc/index/TestBpVectorReorderer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ public void testIndexReorderSparse() throws Exception {
380380
int maxDoc = 0;
381381
try (Directory dir = newFSDirectory(tmpdir)) {
382382
// create an index with a single leaf
383-
try (IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig())) {
383+
try (IndexWriter writer = new IndexWriter(dir, new IndexWriterConfig())) {
384384
for (float[] vector : vectors) {
385385
Document doc = new Document();
386386
if (random().nextBoolean()) {
@@ -394,7 +394,6 @@ public void testIndexReorderSparse() throws Exception {
394394
writer.addDocument(doc);
395395
maxDoc++;
396396
}
397-
writer.forceMerge(1);
398397
}
399398
// reorder using the index reordering tool
400399
BpVectorReorderer.main(

0 commit comments

Comments
 (0)