lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dyer, James" <>
Subject RE: StringIndexOutOfBoundsException "in" SpellCheckCollator.getCollation
Date Tue, 17 Jan 2017 18:14:06 GMT
This sounds a lot like SOLR-4489.  However it looks like this was fixed prior to you version
(4.5).  So it could be you found another case where this bug still exists.

The other thing is the default Query Converter cannot handle all cases, and it could be the
query you are sending is beyond its abilities?  Even in this case, it'd be nice if it failed
more gracefully than this.

Could you provide the query parameters you are sending and also how you have spellcheck configured?

James Dyer
Ingram Content Group

-----Original Message-----
From: Clemens Wyss DEV [] 
Sent: Thursday, January 05, 2017 8:22 AM
To: '' <>
Subject: StringIndexOutOfBoundsException "in" SpellCheckCollator.getCollation

I am seeing many exceptions like this in my Solr [5.4.1] log:
null:java.lang.StringIndexOutOfBoundsException: String index out of range: -2
	at java.lang.AbstractStringBuilder.replace(
	at java.lang.StringBuilder.replace(
	at org.apache.solr.spelling.SpellCheckCollator.getCollation(
	at org.apache.solr.spelling.SpellCheckCollator.collate(
	at org.apache.solr.handler.component.SpellCheckComponent.addCollationsToResponse(
	at org.apache.solr.handler.component.SpellCheckComponent.process(
	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(
	at org.apache.solr.handler.RequestHandlerBase.handleRequest(
	at org.apache.solr.core.SolrCore.execute(
	at org.apache.solr.servlet.HttpSolrCall.execute(

What am I potentially facing here?

View raw message