fix test bug: these tests expect only one segment

This commit is contained in:
Mike McCandless 2016-03-14 10:21:57 -04:00
parent d1ba899591
commit 826ff66716
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ public class TestSpanCollection extends LuceneTestCase {
super.setUp();
directory = newDirectory();
RandomIndexWriter writer = new RandomIndexWriter(random(), directory,
newIndexWriterConfig(new MockAnalyzer(random())).setMergePolicy(NoMergePolicy.INSTANCE));
newIndexWriterConfig(new MockAnalyzer(random())));
for (int i = 0; i < docFields.length; i++) {
Document doc = new Document();
doc.add(newField(FIELD, docFields[i], OFFSETS));