[ https://issues.apache.org/jira/browse/LUCENE-5166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir updated LUCENE-5166: -------------------------------- Attachment: LUCENE-5166.patch OK here's a patch. the cause of the bug is that we only know startOffsets are always increasing (the algorithm relies on this, and merges them across terms). So we cannot safely terminate when end >= limit (only start >= limit), but we don't have to confuse the formatter with the cases of terms that 'span' the limit. > 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