public class HunspellStemFilterFactory extends TokenFilterFactory implements ResourceLoaderAware
HunspellStemFilter.
Example config for British English:
<filter class="solr.HunspellStemFilterFactory"
dictionary="en_GB.dic,my_custom.dic"
affix="en_GB.aff"
ignoreCase="false"
longestOnly="false" />
Both parameters dictionary and affix are mandatory.
Dictionaries for many languages are available through the OpenOffice project.
See http://wiki.apache.org/solr/Hunspell| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
SPI name
|
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion| Constructor and Description |
|---|
HunspellStemFilterFactory(Map<String,String> args)
Creates a new HunspellStemFilterFactory
|
| Modifier and Type | Method and Description |
|---|---|
TokenStream |
create(TokenStream tokenStream)
Transform the specified input TokenStream
|
void |
inform(ResourceLoader loader)
Initializes this component with the provided ResourceLoader
(used for loading classes, files, etc).
|
availableTokenFilters, findSPIName, forName, lookupClass, normalize, reloadTokenFiltersget, get, get, get, get, getBoolean, getChar, getClassArg, getFloat, getInt, getLines, getLuceneMatchVersion, getOriginalArgs, getPattern, getSet, getSnowballWordSet, getWordSet, isExplicitLuceneMatchVersion, require, require, require, requireBoolean, requireChar, requireFloat, requireInt, setExplicitLuceneMatchVersion, splitAt, splitFileNamespublic static final String NAME
public void inform(ResourceLoader loader) throws IOException
ResourceLoaderAwareinform in interface ResourceLoaderAwareIOExceptionpublic TokenStream create(TokenStream tokenStream)
TokenFilterFactorycreate in class TokenFilterFactoryCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.