LUCENE-7144: forceMerge before pulling reader

This commit is contained in:
Mike McCandless 2016-03-28 09:42:29 -04:00
parent d8dd06f422
commit 51feadd185
1 changed files with 1 additions and 1 deletions

View File

@ -115,8 +115,8 @@ public class TestFieldMaskingSpanQuery extends LuceneTestCase {
field("gender", "male"),
field("first", "bubba"),
field("last", "jones") }));
reader = writer.getReader();
writer.forceMerge(1);
reader = writer.getReader();
writer.close();
searcher = new IndexSearcher(getOnlyLeafReader(reader));
}