Now this is strange,
while using TrimFilterFactory with attribute "updateOffsets=true" as described
in
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.TrimFilterFactory
and
https://cwiki.apache.org/confluence/display/solr/Filter+Descriptions#FilterDescriptions-TrimFil
> Can the trim filter factory work on
> string fieldtypes?
No. String field type (solr.StrField) is not analyzed.
You can use charfilter,tokenizer,tokenfilter with solr.TextField.
You can use this (TrimmedString) field definition:
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.jav
, 2008, at 5:28 AM, sanraj25 wrote:
Hi,
I want to know, under which tokenizer TrimFilterFactory is
used?. I
used with all tokenizer.But white
space not removed front and back.Because first tokenizer split the
query
then only filter split. So please tell
me when we use trimfilter facto
Hi,
I want to know, under which tokenizer TrimFilterFactory is used?. I
used with all tokenizer.But white
space not removed front and back.Because first tokenizer split the query
then only filter split. So please tell
me when we use trimfilter factory
thanks
-sanraj
--
View this