lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Olson (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (LUCENE-1500) Highlighter throws StringIndexOutOfBoundsException
Date Wed, 29 Apr 2009 07:49:30 GMT

    [ 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:48 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 Tika 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. 

PS: I'm not running Solr, just POJO with lucene and Tika



  
> 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):
> <add><doc>
>   <field name="id">Test for Highlighting StringIndexOutOfBoundsExcdption</field>
>   <field name="name">Some Name</field>
>   <field name="manu">Acme, Inc.</field>
>   <field name="features">Description of the features, mentioning various things</field>
>   <field name="features">Features also is multivalued</field>
>   <field name="popularity">6</field>
>   <field name="inStock">true</field>
> </doc></add>
> 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


Mime
View raw message