mirror of https://github.com/apache/lucene.git
LUCENE-3123: create 50 segs not 100 (to test bg optimize)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1125006 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fa5da66404
commit
d987a8d48f
|
@ -1045,11 +1045,11 @@ public class TestIndexWriter extends LuceneTestCase {
|
|||
newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)).
|
||||
setOpenMode(OpenMode.CREATE).
|
||||
setMaxBufferedDocs(2).
|
||||
setMergePolicy(newLogMergePolicy(101))
|
||||
setMergePolicy(newLogMergePolicy(51))
|
||||
);
|
||||
Document doc = new Document();
|
||||
doc.add(newField("field", "aaa", Store.YES, Index.ANALYZED, TermVector.WITH_POSITIONS_OFFSETS));
|
||||
for(int i=0;i<200;i++)
|
||||
for(int i=0;i<100;i++)
|
||||
writer.addDocument(doc);
|
||||
writer.optimize(false);
|
||||
|
||||
|
|
Loading…
Reference in New Issue