git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@645539 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2008-04-07 14:30:34 +00:00
parent 5cfd9c8244
commit 62cf2ecb7f
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ final class DocumentsWriterFieldData implements Comparable {
Token token = stream.next(localToken);
if (token == null) break;
position += (token.getPositionIncrement() - 1);
// LUCENE-1255: don't allow negative positon
// LUCENE-1255: don't allow negative position
if (position < 0)
position = 0;
addPosition(token);