mirror of https://github.com/apache/lucene.git
fix test bug: these tests expect only one segment
This commit is contained in:
parent
d1ba899591
commit
826ff66716
|
@ -61,7 +61,7 @@ public class TestSpanCollection extends LuceneTestCase {
|
||||||
super.setUp();
|
super.setUp();
|
||||||
directory = newDirectory();
|
directory = newDirectory();
|
||||||
RandomIndexWriter writer = new RandomIndexWriter(random(), directory,
|
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++) {
|
for (int i = 0; i < docFields.length; i++) {
|
||||||
Document doc = new Document();
|
Document doc = new Document();
|
||||||
doc.add(newField(FIELD, docFields[i], OFFSETS));
|
doc.add(newField(FIELD, docFields[i], OFFSETS));
|
||||||
|
|
Loading…
Reference in New Issue