org.apache.solr.analysis
Class BaseTokenFilterFactory
java.lang.Object
org.apache.solr.analysis.BaseTokenFilterFactory
- All Implemented Interfaces:
- TokenFilterFactory
- Direct Known Subclasses:
- ArabicNormalizationFilterFactory, ArabicStemFilterFactory, ASCIIFoldingFilterFactory, BrazilianStemFilterFactory, CapitalizationFilterFactory, ChineseFilterFactory, CommonGramsFilterFactory, CommonGramsQueryFilterFactory, DelimitedPayloadTokenFilterFactory, DictionaryCompoundWordTokenFilterFactory, DoubleMetaphoneFilterFactory, DutchStemFilterFactory, EdgeNGramFilterFactory, ElisionFilterFactory, EnglishPorterFilterFactory, FrenchStemFilterFactory, GermanStemFilterFactory, GreekLowerCaseFilterFactory, HyphenatedWordsFilterFactory, ISOLatin1AccentFilterFactory, KeepWordFilterFactory, LengthFilterFactory, LowerCaseFilterFactory, NGramFilterFactory, NumericPayloadTokenFilterFactory, PatternReplaceFilterFactory, PersianNormalizationFilterFactory, PhoneticFilterFactory, PorterStemFilterFactory, PositionFilterFactory, RemoveDuplicatesTokenFilterFactory, ReversedWildcardFilterFactory, ReverseStringFilterFactory, RussianLowerCaseFilterFactory, RussianStemFilterFactory, ShingleFilterFactory, SnowballPorterFilterFactory, StandardFilterFactory, StopFilterFactory, SynonymFilterFactory, ThaiWordFilterFactory, TokenOffsetPayloadTokenFilterFactory, TrimFilterFactory, TypeAsPayloadTokenFilterFactory, WordDelimiterFilterFactory
public abstract class BaseTokenFilterFactory
- extends Object
- implements TokenFilterFactory
Simple abstract implementation that handles init arg processing.
- Version:
- $Id: BaseTokenFilterFactory.java 696539 2008-09-18 02:16:26Z ryan $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static final org.slf4j.Logger log
args
protected Map<String,String> args
- The init args
BaseTokenFilterFactory
public BaseTokenFilterFactory()
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
getArgs
public Map<String,String> getArgs()
- Description copied from interface:
TokenFilterFactory
- Accessor method for reporting the args used to initialize this factory.
Implementations are strongly encouraged to return
the contents of the Map passed to to the init method
- Specified by:
getArgs
in interface TokenFilterFactory
getInt
protected int getInt(String name)
getInt
protected int getInt(String name,
int defaultVal)
getInt
protected int getInt(String name,
int defaultVal,
boolean useDefault)
getBoolean
protected boolean getBoolean(String name,
boolean defaultVal)
getBoolean
protected boolean getBoolean(String name,
boolean defaultVal,
boolean useDefault)
Copyright © 2011 Apache Software Foundation. All Rights Reserved.