You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Manuel Amoabeng (JIRA)" <ji...@apache.org> on 2013/08/12 09:42:47 UTC
[jira] [Commented] (LUCENE-5166) PostingsHighlighter fails with
IndexOutOfBoundsException
[ https://issues.apache.org/jira/browse/LUCENE-5166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13736666#comment-13736666 ]
Manuel Amoabeng commented on LUCENE-5166:
-----------------------------------------
java.lang.IndexOutOfBoundsException: start 9999, end 10004, s.length() 10000
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:453)
at java.lang.StringBuilder.append(StringBuilder.java:179)
at org.apache.lucene.search.postingshighlight.DefaultPassageFormatter.append(DefaultPassageFormatter.java:135)
at com.vjoon.ps.core.ftquery.business.index.LuceneIndexer$1$1.append(LuceneIndexer.java:252)
at org.apache.lucene.search.postingshighlight.DefaultPassageFormatter.format(DefaultPassageFormatter.java:79)
at org.apache.lucene.search.postingshighlight.PostingsHighlighter.highlightField(PostingsHighlighter.java:435)
at org.apache.lucene.search.postingshighlight.PostingsHighlighter.highlightFields(PostingsHighlighter.java:353)
at org.apache.lucene.search.postingshighlight.PostingsHighlighter.highlightFields(PostingsHighlighter.java:268)
> 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
>
> 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org