lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/index SegmentsReader.java
Date Wed, 10 Sep 2003 14:27:37 GMT
otis        2003/09/10 07:27:37

  Modified:    src/java/org/apache/lucene/index SegmentsReader.java
  Log:
  - A patch that eliminates the confusing and slightly different behaviour of
    TermEnum when dealing with an enumeration of all terms versus an enumeration
    starting from a specific term.
    This patch also fixes incorrect term document frequences when the same term
    is present in multiple segments.
  Submitted by: Christoph Goller
  Reviewed by: Otis
  
  Revision  Changes    Path
  1.12      +2 -4      jakarta-lucene/src/java/org/apache/lucene/index/SegmentsReader.java
  
  Index: SegmentsReader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/index/SegmentsReader.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- SegmentsReader.java	1 May 2003 01:09:15 -0000	1.11
  +++ SegmentsReader.java	10 Sep 2003 14:27:37 -0000	1.12
  @@ -238,9 +238,7 @@
       }
   
       if (t != null && queue.size() > 0) {
  -      SegmentMergeInfo top = (SegmentMergeInfo)queue.top();
  -      term = top.termEnum.term();
  -      docFreq = top.termEnum.docFreq();
  +      next();
       }
     }
   
  
  
  

Mime
View raw message