lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Busch (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-955) Bug in SegmentTermPositions if used for first term in the dictionary
Date Wed, 11 Jul 2007 22:40:04 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Busch updated LUCENE-955:
---------------------------------

    Attachment: lucene-955.patch

Patch including testcase showing the bug.

> 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
>
>         Attachments: lucene-955.patch
>
>
> 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message