Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 26157 invoked from network); 27 Feb 2009 21:21:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Feb 2009 21:21:53 -0000 Received: (qmail 51874 invoked by uid 500); 27 Feb 2009 21:21:46 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 51836 invoked by uid 500); 27 Feb 2009 21:21:46 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 51643 invoked by uid 99); 27 Feb 2009 21:21:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Feb 2009 13:21:45 -0800 X-ASF-Spam-Status: No, hits=-1998.5 required=10.0 tests=ALL_TRUSTED,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Feb 2009 21:21:33 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CD7B6234C4AD for ; Fri, 27 Feb 2009 13:21:12 -0800 (PST) Message-ID: <590252730.1235769672840.JavaMail.jira@brutus> Date: Fri, 27 Feb 2009 13:21:12 -0800 (PST) From: "Michael McCandless (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-1500) Highlighter throws StringIndexOutOfBoundsException In-Reply-To: <1541987559.1230000344227.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12677535#action_12677535 ] Michael McCandless commented on LUCENE-1500: -------------------------------------------- I thought the bug was in the analyzer (producing out-of-bounds token offsets), not highlighter? The original Solr bug (SOLR-925), which I think was the analyzer producing invalid offsets, is now fixed. Peter are you using Solr, or are you seeing this in a different context? > 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.4.1, 2.9 > > Attachments: 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