lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/index SegmentTermDocs.java
Date Mon, 09 Feb 2004 18:10:45 GMT
cutting     2004/02/09 10:10:45

  Modified:    src/java/org/apache/lucene/index SegmentTermDocs.java
  Log:
  Fix a bug in skipTo().
  
  Revision  Changes    Path
  1.5       +2 -2      jakarta-lucene/src/java/org/apache/lucene/index/SegmentTermDocs.java
  
  Index: SegmentTermDocs.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/index/SegmentTermDocs.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SegmentTermDocs.java	15 Jan 2004 22:42:32 -0000	1.4
  +++ SegmentTermDocs.java	9 Feb 2004 18:10:45 -0000	1.5
  @@ -196,9 +196,9 @@
           lastSkipDoc = skipDoc;
           lastFreqPointer = freqPointer;
           lastProxPointer = proxPointer;
  -        if (skipDoc >= doc)
  +        if (skipDoc != 0 && skipDoc >= doc)
             numSkipped += skipInterval;
  -        
  +
           if ((count + numSkipped + skipInterval) > df)
             break;                                  // no more skips
   
  
  
  

---------------------------------------------------------------------
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