use the new non-deprecated IndexWriter.getMergeFactor() method instead of the static variable IndexWriter.mergeFactor.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150718 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bernhard Messer 2004-12-22 19:43:05 +00:00
parent 11f9a45a03
commit ad114c6e7d
1 changed files with 2 additions and 2 deletions

View File

@ -70,12 +70,12 @@ public class TestIndexReader extends TestCase
// add more documents
writer = new IndexWriter(d, new StandardAnalyzer(), false);
// want to get some more segments here
for (int i = 0; i < 5*writer.mergeFactor; i++)
for (int i = 0; i < 5*writer.getMergeFactor(); i++)
{
addDocumentWithFields(writer);
}
// new fields are in some different segments (we hope)
for (int i = 0; i < 5*writer.mergeFactor; i++)
for (int i = 0; i < 5*writer.getMergeFactor(); i++)
{
addDocumentWithDifferentFields(writer);
}