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

Adrien Grand updated LUCENE-4888:
---------------------------------

    Attachment: LUCENE-4888.patch

Patch that adds assertions from the previous patch to new bug fixes:
 - SloppyPhraseScorer.advance
 - MultiDocs(AndPositions)Enum.advance
 - MultiSpansWrapper.skipTo

These three methods relied on the assumption that advance(target) is equivalent 
to nextDoc() when target is <= the current position (which is wrong, although 
all our impls behave this way).
                
> SloppyPhraseScorer calls DocsAndPositionsEnum.advance with target = -1
> ----------------------------------------------------------------------
>
>                 Key: LUCENE-4888
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4888
>             Project: Lucene - Core
>          Issue Type: Bug
>    Affects Versions: 4.2
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>         Attachments: LUCENE-4888.patch, LUCENE-4888.patch
>
>
> SloppyPhraseScorer calls DocsAndPositionsEnum.advance with target = -1 
> although the behavior of this method is undefined in such cases.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to