From ad114c6e7db8bb2015b5bf407a3e24eb269ee4a0 Mon Sep 17 00:00:00 2001 From: Bernhard Messer Date: Wed, 22 Dec 2004 19:43:05 +0000 Subject: [PATCH] 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 --- src/test/org/apache/lucene/index/TestIndexReader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/org/apache/lucene/index/TestIndexReader.java b/src/test/org/apache/lucene/index/TestIndexReader.java index b28f7679747..6badc280543 100644 --- a/src/test/org/apache/lucene/index/TestIndexReader.java +++ b/src/test/org/apache/lucene/index/TestIndexReader.java @@ -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); }