Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 58174 invoked from network); 29 Apr 2009 07:50:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Apr 2009 07:50:01 -0000 Received: (qmail 8519 invoked by uid 500); 29 Apr 2009 07:50:00 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 8421 invoked by uid 500); 29 Apr 2009 07:50:00 -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 8412 invoked by uid 99); 29 Apr 2009 07:50:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2009 07:50:00 +0000 X-ASF-Spam-Status: No, hits=-1995.0 required=10.0 tests=ALL_TRUSTED,URIBL_BLACK,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; Wed, 29 Apr 2009 07:49:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BA1B9234C04B for ; Wed, 29 Apr 2009 00:49:30 -0700 (PDT) Message-ID: <1078485000.1240991370761.JavaMail.jira@brutus> Date: Wed, 29 Apr 2009 00:49:30 -0700 (PDT) From: "Lars Olson (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Issue Comment Edited: (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-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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=12704022#action_12704022 ] Lars Olson edited comment on LUCENE-1500 at 4/29/09 12:47 AM: -------------------------------------------------------------- Hi! with the risk of being a noob, I just have to ask... The patch Lucene-1500-NewException.patch, is it incorporated in the Lucene nightly builds as of 2009-04-27? I am now running my code against the nightly builds of Lucene20090427, and those libs give me the new error "InvalidTokenOffsetsException" at the exact same spot as the 2.4.1 libs return a StringIndexOutOfBounds exception. Should it not solve the issue? If not, could you maybe suggest a client coding which circumvents it? When using the test-documents with search query "tika" The resulting 9 documents return 5 occurences of the exception. PS: I'm not running Solr, just POJO with lucene and Tika was (Author: genernic): Hi! with the risk of being a noob, I just have to ask... The patch Lucene-1500-NewException.patch, is it incorporated in the Lucene nightly builds as of 2009-04-27? I am now running my code against the nightly builds of Lucene20090427, and those libs give me the new error "InvalidTokenOffsetsException" at the exact same spot as the 2.4.1 libs return a StringIndexOutOfBounds exception. Should it not solve the issue? If not, could you maybe suggest a client coding which circumvents it? When using the test-documents with search query "tika" The resulting 9 documents return 5 occurences of the exception. > 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: Mark Harwood > Fix For: 2.9 > > Attachments: Lucene-1500-NewException.patch, 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