mirror of https://github.com/apache/lucene.git
Fixed a bug in skipTo(), bugzilla #27587.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150244 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c79abd35dd
commit
76bd7d9b29
|
@ -199,7 +199,7 @@ class SegmentTermDocs implements TermDocs {
|
|||
if (skipDoc != 0 && skipDoc >= doc)
|
||||
numSkipped += skipInterval;
|
||||
|
||||
if ((count + numSkipped + skipInterval) > df)
|
||||
if ((count + numSkipped + skipInterval) >= df)
|
||||
break; // no more skips
|
||||
|
||||
skipDoc += skipStream.readVInt();
|
||||
|
|
Loading…
Reference in New Issue