[ https://issues.apache.org/jira/browse/LUCENE-1500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12677968#action_12677968 ] Mark Harwood commented on LUCENE-1500: -------------------------------------- Isn't your example predicated on being given an invalid Token with end Highlighter throws StringIndexOutOfBoundsException > -------------------------------------------------- > > Key: LUCENE-1500 > URL: https://issues.apache.org/jira/browse/LUCENE-1500 > Project: Lucene - Java > Issue Type: Bug > Components: contrib/highlighter > Affects Versions: 2.4 > Environment: Found this running the example code in Solr (latest version). > Reporter: David Bowen > Assignee: Michael McCandless > Fix For: 2.9 > > Attachments: Lucene-1500-NewException.patch, LUCENE-1500.patch, patch.txt > > > Using the canonical Solr example (ant run-example) I added this document (using exampledocs/post.sh): > > Test for Highlighting StringIndexOutOfBoundsExcdption > Some Name > Acme, Inc. > Description of the features, mentioning various things > Features also is multivalued > 6 > true > > and then the URL http://localhost:8983/solr/select/?q=features&hl=true&hl.fl=features caused the exception. > I have a patch. I don't know if it is completely correct, but it avoids this exception. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org