lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bmes...@apache.org
Subject cvs commit: jakarta-lucene/src/test/org/apache/lucene/index TestIndexReader.java
Date Wed, 22 Dec 2004 19:43:05 GMT
bmesser     2004/12/22 11:43:05

  Modified:    src/test/org/apache/lucene/index TestIndexReader.java
  Log:
  use the new non-deprecated IndexWriter.getMergeFactor() method instead of the static variable
IndexWriter.mergeFactor.
  
  Revision  Changes    Path
  1.11      +2 -2      jakarta-lucene/src/test/org/apache/lucene/index/TestIndexReader.java
  
  Index: TestIndexReader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/test/org/apache/lucene/index/TestIndexReader.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- TestIndexReader.java	19 Dec 2004 14:58:49 -0000	1.10
  +++ TestIndexReader.java	22 Dec 2004 19:43:05 -0000	1.11
  @@ -70,12 +70,12 @@
           // 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);
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message