mirror of https://github.com/apache/lucene.git
ensure a single segment in new test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1673596 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a5877d42b0
commit
fd70dadf80
|
@ -86,6 +86,7 @@ public class TestMultiPhraseEnum extends LuceneTestCase {
|
|||
doc.add(new TextField("field", "bar", Field.Store.NO));
|
||||
writer.addDocument(doc);
|
||||
|
||||
writer.forceMerge(1);
|
||||
DirectoryReader ir = DirectoryReader.open(writer, true);
|
||||
writer.close();
|
||||
|
||||
|
|
Loading…
Reference in New Issue