Class HunspellStemFilterFactory
java.lang.Object
org.apache.lucene.analysis.AbstractAnalysisFactory
org.apache.lucene.analysis.TokenFilterFactory
org.apache.lucene.analysis.hunspell.HunspellStemFilterFactory
- All Implemented Interfaces:
ResourceLoaderAware
TokenFilterFactory that creates instances of
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.
- Since:
- 3.5.0
- WARNING: This API is experimental and might change in incompatible ways in the next release.
- SPI Name (case-insensitive: if the name is 'htmlStrip', 'htmlstrip' can be used when looking up the service).
- "hunspellStem"
-
Field Summary
Fields inherited from class org.apache.lucene.analysis.AbstractAnalysisFactory
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
-
Constructor Summary
ConstructorDescriptionDefault ctor for compatibility with SPIHunspellStemFilterFactory
(Map<String, String> args) Creates a new HunspellStemFilterFactory -
Method Summary
Modifier and TypeMethodDescriptioncreate
(TokenStream tokenStream) void
inform
(ResourceLoader loader) Methods inherited from class org.apache.lucene.analysis.TokenFilterFactory
availableTokenFilters, findSPIName, forName, lookupClass, normalize, reloadTokenFilters
Methods inherited from class org.apache.lucene.analysis.AbstractAnalysisFactory
defaultCtorException, get, 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, splitFileNames
-
Field Details
-
NAME
SPI name- See Also:
-
-
Constructor Details
-
HunspellStemFilterFactory
Creates a new HunspellStemFilterFactory -
HunspellStemFilterFactory
public HunspellStemFilterFactory()Default ctor for compatibility with SPI
-
-
Method Details
-
inform
- Specified by:
inform
in interfaceResourceLoaderAware
- Throws:
IOException
-
create
- Specified by:
create
in classTokenFilterFactory
-