public class MorfologikFilterFactory extends TokenFilterFactory
MorfologikFilter
.
<fieldType name="text_polish" class="solr.TextField" positionIncrementGap="100"> <analyzer> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.MorfologikFilterFactory" dictionary="MORFOLOGIK" /> </analyzer> </fieldType>
Any of Morfologik dictionaries can be used, these are at the moment:
MORFOLOGIK
(Morfologik's original dictionary),
MORFEUSZ
(Morfeusz-SIAT),
COMBINED
(both of the dictionaries above, combined).
Modifier and Type | Field and Description |
---|---|
static String |
DICTIONARY_SCHEMA_ATTRIBUTE
Schema attribute.
|
args, luceneMatchVersion
Constructor and Description |
---|
MorfologikFilterFactory()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
TokenStream |
create(TokenStream ts) |
void |
init(Map<String,String> args) |
availableTokenFilters, forName, lookupClass, reloadTokenFilters
assureMatchVersion, getArgs, getBoolean, getBoolean, getInt, getInt, getInt, getLines, getLuceneMatchVersion, getPattern, getSnowballWordSet, getWordSet, setLuceneMatchVersion, splitFileNames
public static final String DICTIONARY_SCHEMA_ATTRIBUTE
public MorfologikFilterFactory()
AbstractAnalysisFactory
for initialization lifecycle.public TokenStream create(TokenStream ts)
create
in class TokenFilterFactory
public void init(Map<String,String> args)
init
in class AbstractAnalysisFactory
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.