public class SnowballPorterFilterFactory extends TokenFilterFactory implements ResourceLoaderAware
SnowballFilter
, with configurable language
Note: Use of the "Lovins" stemmer is not recommended, as it is implemented with reflection.
<fieldType name="text_snowballstem" class="solr.TextField" positionIncrementGap="100"> <analyzer> <tokenizer class="solr.StandardTokenizerFactory"/> <filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.SnowballPorterFilterFactory" protected="protectedkeyword.txt" language="English"/> </analyzer> </fieldType>
Modifier and Type | Field and Description |
---|---|
static String |
PROTECTED_TOKENS |
args, luceneMatchVersion
Constructor and Description |
---|
SnowballPorterFilterFactory() |
Modifier and Type | Method and Description |
---|---|
TokenFilter |
create(TokenStream input)
Transform the specified input TokenStream
|
void |
inform(ResourceLoader loader)
Initializes this component with the provided ResourceLoader
(used for loading classes, files, etc).
|
availableTokenFilters, forName, lookupClass, reloadTokenFilters
assureMatchVersion, getArgs, getBoolean, getBoolean, getInt, getInt, getInt, getLines, getLuceneMatchVersion, getPattern, getSnowballWordSet, getWordSet, init, setLuceneMatchVersion, splitFileNames
public static final String PROTECTED_TOKENS
public void inform(ResourceLoader loader) throws IOException
ResourceLoaderAware
inform
in interface ResourceLoaderAware
IOException
public TokenFilter create(TokenStream input)
TokenFilterFactory
create
in class TokenFilterFactory
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.