org.apache.solr.analysis
Class SnowballPorterFilterFactory
java.lang.Object
org.apache.solr.analysis.BaseTokenFilterFactory
org.apache.solr.analysis.SnowballPorterFilterFactory
- All Implemented Interfaces:
- TokenFilterFactory, ResourceLoaderAware
public class SnowballPorterFilterFactory
- extends BaseTokenFilterFactory
- implements ResourceLoaderAware
Factory for SnowballFilters, with configurable language
Browsing the code, SnowballFilter uses reflection to adapt to Lucene... don't
use this if you are concerned about speed. Use EnglishPorterFilterFactory.
- Version:
- $Id: SnowballPorterFilterFactory.java 804726 2009-08-16 17:28:58Z yonik $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROTECTED_TOKENS
public static final String PROTECTED_TOKENS
- See Also:
- Constant Field Values
SnowballPorterFilterFactory
public SnowballPorterFilterFactory()
inform
public void inform(ResourceLoader loader)
- Specified by:
inform
in interface ResourceLoaderAware
init
public void init(Map<String,String> args)
- Description copied from interface:
TokenFilterFactory
init
will be called just once, immediately after creation.
The args are user-level initialization parameters that
may be specified when declaring the factory in the
schema.xml
- Specified by:
init
in interface TokenFilterFactory
- Overrides:
init
in class BaseTokenFilterFactory
create
public org.apache.solr.analysis.SnowballPorterFilter create(TokenStream input)
- Description copied from interface:
TokenFilterFactory
- Transform the specified input TokenStream
- Specified by:
create
in interface TokenFilterFactory
Copyright © 2011 Apache Software Foundation. All Rights Reserved.