LUCENE-9620: Fix TestTermQuery failure.

This commit is contained in:
Adrien Grand 2021-09-03 10:47:45 +02:00
parent de661d6535
commit 4bb018e904
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ public class TestTermQuery extends LuceneTestCase {
} }
w.addDocument(doc); w.addDocument(doc);
} }
w.commit(); w.forceMerge(1);
DirectoryReader reader = w.getReader(); DirectoryReader reader = w.getReader();
final IndexSearcher searcher = new IndexSearcher(reader); final IndexSearcher searcher = new IndexSearcher(reader);