public class HunspellStemFilterFactory extends TokenFilterFactory implements ResourceLoaderAware
HunspellStemFilter.
Example config for British English including a custom dictionary, case insensitive matching:
<filter class="solr.HunspellStemFilterFactory"
dictionary="en_GB.dic,my_custom.dic"
affix="en_GB.aff"
ignoreCase="true" />
Both parameters dictionary and affix are mandatory.
args, luceneMatchVersion| Constructor and Description |
|---|
HunspellStemFilterFactory() |
| Modifier and Type | Method and Description |
|---|---|
TokenStream |
create(TokenStream tokenStream)
Creates an instance of
HunspellStemFilter that will filter the given
TokenStream |
void |
inform(ResourceLoader loader)
Loads the hunspell dictionary and affix files defined in the configuration
|
availableTokenFilters, forName, lookupClass, reloadTokenFiltersassureMatchVersion, getArgs, getBoolean, getBoolean, getInt, getInt, getInt, getLines, getLuceneMatchVersion, getPattern, getSnowballWordSet, getWordSet, init, setLuceneMatchVersion, splitFileNamespublic void inform(ResourceLoader loader) throws IOException
inform in interface ResourceLoaderAwareloader - ResourceLoader used to load the filesIOExceptionpublic TokenStream create(TokenStream tokenStream)
HunspellStemFilter that will filter the given
TokenStreamcreate in class TokenFilterFactorytokenStream - TokenStream that will be filteredCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.