Bug in SegmentTermPositions if used for first term in the dictionary
--------------------------------------------------------------------
Key: LUCENE-955
URL: https://issues.apache.org/jira/browse/LUCENE-955
Project: Lucene - Java
Issue Type: Bug
Components: Index
Affects Versions: 2.2
Reporter: Michael Busch
Assignee: Michael Busch
Priority: Minor
Fix For: 2.3
When a SegmentTermPositions object is reset via seek() it does not move
the proxStream to the correct position in case the term is the first one
in the dictionary.
The reason for this behavior is that the skipStream is only moved if
lazySkipPointer is != 0. But 0 is a valid value for the posting list of
the very first term. The fix is easy: We simply have to set lazySkipPointer
to -1 in case no lazy skip has to be performed and then we only move the
skipStream if lazySkipPointer!=-1.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]