Class MorfologikTokenFilterFactory
java.lang.Object
org.elasticsearch.index.analysis.AbstractTokenFilterFactory
pl.allegro.tech.elasticsearch.index.analysis.pl.MorfologikTokenFilterFactory
- All Implemented Interfaces:
org.elasticsearch.index.analysis.TokenFilterFactory
public class MorfologikTokenFilterFactory
extends org.elasticsearch.index.analysis.AbstractTokenFilterFactory
Morfologik Token Filter Factory with configurable dictionary, default Polish.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringParameter "dictionary" - name of file of custom dictionary from elasticsearch /config directory.Fields inherited from interface org.elasticsearch.index.analysis.TokenFilterFactory
IDENTITY_FILTER -
Constructor Summary
ConstructorsConstructorDescriptionMorfologikTokenFilterFactory(org.elasticsearch.index.IndexSettings indexSettings, org.elasticsearch.env.Environment env, String name, org.elasticsearch.common.settings.Settings settings) Constructs a new MorfologikTokenFilterFactory. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.analysis.TokenStreamcreate(org.apache.lucene.analysis.TokenStream tokenStream) Methods inherited from class org.elasticsearch.index.analysis.AbstractTokenFilterFactory
nameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.index.analysis.TokenFilterFactory
breaksFastVectorHighlighter, getAnalysisMode, getChainAwareTokenFilterFactory, getSynonymFilter, normalize
-
Field Details
-
DICTIONARY_PARAM
Parameter "dictionary" - name of file of custom dictionary from elasticsearch /config directory.- See Also:
-
-
Constructor Details
-
MorfologikTokenFilterFactory
public MorfologikTokenFilterFactory(org.elasticsearch.index.IndexSettings indexSettings, org.elasticsearch.env.Environment env, String name, org.elasticsearch.common.settings.Settings settings) throws IOException Constructs a new MorfologikTokenFilterFactory.- Parameters:
indexSettings- - index level settingsenv- - elasticsearch environmentname- - component namesettings- - component settings- Throws:
IOException- - exception during creating a component
-
-
Method Details
-
create
public org.apache.lucene.analysis.TokenStream create(org.apache.lucene.analysis.TokenStream tokenStream)
-