lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <>
Subject [jira] Commented: (LUCENE-1500) Highlighter throws StringIndexOutOfBoundsException
Date Sat, 28 Feb 2009 00:27:12 GMT


Hoss Man commented on LUCENE-1500:

Peter: i tried some experiments with teh analyzer specified in the schema+fieldType you referenced,
and i couldn't reproduce any problem.

I suggest you open a new Jira issue against Solr and attach some sort of reproducible test
(either a junit test OR a patch against the example configs + an example doc to index and
an example query that either triggers an error or highlights an incorrect substring) so people
have a starting point for trying to figure where the incorrect offsets are coming from.

LUCENE-1500 can/should stay open, but should focus specifically on the issue of what Highlighter's
behavior should be when dealing with offsets that go past the end of the string (there seems
to be consensus that it should do something different then IndexOutOfBounds, it just doesn't
seem to be clear what the new behavior should be)

> Highlighter throws StringIndexOutOfBoundsException
> --------------------------------------------------
>                 Key: LUCENE-1500
>                 URL:
>             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/
> <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:
For additional commands, e-mail:

View raw message