lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Bowen (JIRA)" <>
Subject [jira] Created: (LUCENE-1500) Highlighter throws StringIndexOutOfBoundsException
Date Tue, 23 Dec 2008 02:45:44 GMT
Highlighter throws StringIndexOutOfBoundsException

                 Key: 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
         Attachments: patch.txt

Using the canonical Solr example (ant run-example) I added this document (using exampledocs/

  <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>

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