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

Robert Muir commented on LUCENE-5166:
-------------------------------------

Well the passage may not be truncated: for example depending on the analyzer 
(e.g. ngrams or something), it could just be that the term "spans sentences". 

And the problem is: only startOffset is guaranteed to be increasing. so if we 
discard the passage just because of this, it could be unsafe since new terms 
that are "in bounds" have still yet to be seen...

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

Reply via email to