public class MorfologikFilterFactory extends TokenFilterFactory
MorfologikFilter
. For backward compatibility polish
dictionary is used as default. You can change dictionary resource
by dictionary-resource parameter.
<fieldType name="text_polish" class="solr.TextField" positionIncrementGap="100"> <analyzer> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.MorfologikFilterFactory" dictionary-resource="pl" /> </analyzer> </fieldType>
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DICTIONARY_RESOURCE
The default dictionary resource (for Polish).
|
static String |
DICTIONARY_RESOURCE_ATTRIBUTE
Dictionary resource
|
static String |
DICTIONARY_SCHEMA_ATTRIBUTE
Deprecated.
|
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
Constructor and Description |
---|
MorfologikFilterFactory(Map<String,String> args)
Creates a new MorfologikFilterFactory
|
Modifier and Type | Method and Description |
---|---|
TokenStream |
create(TokenStream ts) |
availableTokenFilters, forName, lookupClass, reloadTokenFilters
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, splitFileNames
public static final String DEFAULT_DICTIONARY_RESOURCE
@Deprecated public static final String DICTIONARY_SCHEMA_ATTRIBUTE
public static final String DICTIONARY_RESOURCE_ATTRIBUTE
public TokenStream create(TokenStream ts)
create
in class TokenFilterFactory
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.