TokenFilterFactory creates a TokenFilter to transform one TokenStream into another. TokenFilterFactories are registered for FieldTypes with the IndexSchema through the schema.xml file.
Example schema.xml entry to register a TokenFilterFactory implementation to transform tokens in a field of type "cool"
<fieldtype name="cool" class="solr.TextField"> <analyzer> ... <filter class="foo.MyTokenFilterFactory"/> ...
A single instance of any registered TokenFilterFactory is created via the default constructor and is reused for each FieldType.
@version $Id: TokenFilterFactory.java 597847 2007-11-24 13:51:46Z ryan $ | |
| |