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:
Doug Cutting 2004-03-24 17:36:53 +00:00
parent c79abd35dd
commit 76bd7d9b29
1 changed files with 1 additions and 1 deletions

View File

@ -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();