Hello,

Using version 6.5.1, I get the error:






*java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.AbstractStringBuilder.replace(AbstractStringBuilder.java:851)
at java.lang.StringBuilder.replace(StringBuilder.java:262) at
org.apache.solr.spelling.SpellCheckCollator.getCollation(SpellCheckCollator.java:238)
at
org.apache.solr.spelling.SpellCheckCollator.collate(SpellCheckCollator.java:93)
at
org.apache.solr.handler.component.SpellCheckComponent.addCollationsToResponse(SpellCheckComponent.java:296)*

in the following escenarios:

*Escenario one:*

Having only the following two documents in the index:

*Id = "a", FieldOne = "swimwear"*
*Id = "b", FieldOne= "couture"*

Synonyms:  *"swimming costume,swim suit,swimwear"*
Query: *q= "swimwear"*

*Escenario two:*

Having only the following two documents in the index:

*Id = "a", FieldOne = "cord"*
*Id = "b", FieldOne = "oud"*

Synonyms:* "coords,coordinates,co ord"*
Query:  *q="coordinates"*

We don't have any custom code for the SpellCheckCollator or any addons that
could modify the functionality around it.

It would be great if you could shed some light given that the steps to
replicate it are quite straight forward.

Thank you,
Gonzalo

Reply via email to