mirror of https://github.com/apache/lucene.git
LUCENE-7144: forceMerge before pulling reader
This commit is contained in:
parent
d8dd06f422
commit
51feadd185
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue