Last Updated: February 25, 2016
·
2.357K
· sunng

Int/Long field as solr uniqueKey

Note that if you have enabled the QueryElevationComponent in solrconfig.xml it requires the schema to have a uniqueKey of type StrField. It cannot be, for example, an int field.

Otherwise, you will get exception like:

java.lang.NumberFormatException: For input string: "MA147LL/A"

1 Response
Add your response

Thanks that helps!

over 1 year ago ·