Class MorfologikFilterFactory
java.lang.Object
org.apache.lucene.analysis.AbstractAnalysisFactory
org.apache.lucene.analysis.TokenFilterFactory
org.apache.lucene.analysis.morfologik.MorfologikFilterFactory
- All Implemented Interfaces:
ResourceLoaderAware
Filter factory for
MorfologikFilter
.
An explicit resource name of the dictionary (".dict"
) can be provided via the
dictionary
attribute, as the example below demonstrates:
<fieldType name="text_mylang" class="solr.TextField" positionIncrementGap="100"> <analyzer> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.MorfologikFilterFactory" dictionary="mylang.dict" /> </analyzer> </fieldType>
If the dictionary attribute is not provided, the Polish dictionary is loaded and used by default.
- Since:
- 4.0.0
- See Also:
- SPI Name (case-insensitive: if the name is 'htmlStrip', 'htmlstrip' can be used when looking up the service).
- "morfologik"
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Dictionary resource attribute (should have".dict"
suffix), loaded fromResourceLoader
.static final String
SPI nameFields inherited from class org.apache.lucene.analysis.AbstractAnalysisFactory
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
-
Constructor Summary
ConstructorDescriptionDefault ctor for compatibility with SPIMorfologikFilterFactory
(Map<String, String> args) Creates a new MorfologikFilterFactory -
Method Summary
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:
-
DICTIONARY_ATTRIBUTE
Dictionary resource attribute (should have".dict"
suffix), loaded fromResourceLoader
.- See Also:
-
-
Constructor Details
-
MorfologikFilterFactory
Creates a new MorfologikFilterFactory -
MorfologikFilterFactory
public MorfologikFilterFactory()Default ctor for compatibility with SPI
-
-
Method Details
-
inform
- Specified by:
inform
in interfaceResourceLoaderAware
- Throws:
IOException
-
create
- Specified by:
create
in classTokenFilterFactory
-