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

Shai Erera commented on LUCENE-5166:
------------------------------------

Can you show a real usecase for a document matching beyond content.length()? 
Your patch artificially creates an out-of-bound Passage, but I think it's 
better if we can see a real usecase, e.g. maybe a combination of TokenFilters 
may cause that?

But if e.g. the app indexed content1 but then tries to highlight content2, I 
don't think that's a supported usecase...
                
> 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
>         Attachments: LUCENE-5166.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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to