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"
Written by Sun Ning
Related protips
1 Response
Thanks that helps!
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Solr
Authors
Related Tags
#solr
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#