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:
Michael McCandless 2011-05-19 17:23:30 +00:00
parent fa5da66404
commit d987a8d48f
1 changed files with 2 additions and 2 deletions

View File

@ -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);