[ 
https://issues.apache.org/jira/browse/LUCENE-5166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13740925#comment-13740925
 ] 

Manuel Amoabeng commented on LUCENE-5166:
-----------------------------------------

I just found another problem here: If we have both, matches that do and matches 
that don't span the content boundary the formatter is asked to highlight the 
spanning match.
Please find attached additional tests and a possible fix for this. 
                
> PostingsHighlighter fails with IndexOutOfBoundsException
> --------------------------------------------------------
>
>                 Key: LUCENE-5166
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5166
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/highlighter
>    Affects Versions: 4.4
>            Reporter: Manuel Amoabeng
>             Fix For: 5.0, 4.5
>
>         Attachments: LUCENE-5166-2.patch, LUCENE-5166.patch, 
> LUCENE-5166.patch, LUCENE-5166.patch, LUCENE-5166.patch, LUCENE-5166.patch, 
> LUCENE-5166.patch, LUCENE-5166-revisited.patch
>
>
> Given a document with a match at a startIndex < PostingsHighlighter.maxlength 
> and an endIndex > PostingsHighlighter.maxLength, DefaultPassageFormatter will 
> throw an IndexOutOfBoundsException when DefaultPassageFormatter.append() is 
> invoked. 

--
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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to