Can the trim filter factory work on string fieldtypes?
When I define a trim filter factory on a string fieldtype, i get an
exception:
org.apache.solr.common.SolrException: Unknown fieldtype 'string'
specified on field id
at
org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:477)
at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:95)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:520)
at
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137)
This is how i define the field in the schema:
<fieldType name="string" class="solr.StrField" sortMissingLast="true"
omitNorms="true">
<analyzer type="index">
<filter class="solr.TrimFilterFactory" />
</analyzer>
</fieldType>
--
Tommy Chheng
Programmer and UC Irvine Graduate Student
Twitter @tommychheng
http://tommy.chheng.com