[ 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 Attached is just a combined patch of Manuel's 2 patches. There is definitely bug(s) here. As far as the fix, to me the big question (I put it in a nocommit to his test case), is if formatter classes should really have to deal with these cases. > 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 > > > 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