mirror of https://github.com/apache/lucene.git
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:
parent
11f9a45a03
commit
ad114c6e7d
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue