java - Solr error when attempting to use a field set to a fieldtype of solr.StrField -
i'm trying setup faceting through solr. have specific field use called "category". faceting works, appears lowercase , contains single word. i'm sure due field analyzer i've change field's type "string". produces error! see below.
fyi - i'm using solr 4.3.
you can see fieldtype , field below. can see field set fieldtype "string". field type uses "solr.strfield". why using fieldtype cause error below?
schema.xml
<types> <fieldtype name="string" class="solr.strfield" sortmissinglast="true" /> </types> <fields> <field name="category" type="string" indexed="true" stored="true" required="false" multivalued="false"/> </fields>
i'm getting error message in log , when attempting run query
this attributesource not have attribute 'org.apache.lucene.analysis.tokenattributes.positionincrementattribute'
null:java.lang.illegalargumentexception: attributesource not have attribute 'org.apache.lucene.analysis.tokenattributes.positionincrementattribute'.
update: since error seems indicate fieldtype should have attribute positionincrementattribute, added string test. cleared , re-indexed, still no luck.
<fieldtype name="string" class="solr.strfield" sortmissinglast="true" positionincrementgap="100"/>
Comments
Post a Comment