Package org.elasticsearch.index.analysis
Class SynonymTokenFilterFactory
- java.lang.Object
-
- org.elasticsearch.index.AbstractIndexComponent
-
- org.elasticsearch.index.analysis.AbstractTokenFilterFactory
-
- org.elasticsearch.index.analysis.SynonymTokenFilterFactory
-
- All Implemented Interfaces:
TokenFilterFactory
,IndexComponent
- Direct Known Subclasses:
SynonymGraphTokenFilterFactory
public class SynonymTokenFilterFactory extends AbstractTokenFilterFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SynonymTokenFilterFactory.Factory
-
Field Summary
Fields Modifier and Type Field Description protected boolean
expand
protected java.lang.String
format
protected boolean
ignoreCase
Deprecated.this property only works with tokenizer propertyprotected boolean
lenient
protected Settings
settings
protected TokenizerFactory
tokenizerFactory
Deprecated.This filter tokenize synonyms with whatever tokenizer and token filters appear before it in the chain in 6.0.-
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
deprecationLogger, indexSettings, logger
-
Fields inherited from class org.elasticsearch.index.analysis.AbstractTokenFilterFactory
version
-
-
Constructor Summary
Constructors Constructor Description SynonymTokenFilterFactory(IndexSettings indexSettings, Environment env, AnalysisRegistry analysisRegistry, java.lang.String name, Settings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.analysis.TokenStream
create(org.apache.lucene.analysis.TokenStream tokenStream)
protected java.io.Reader
getRulesFromSettings(Environment env)
-
Methods inherited from class org.elasticsearch.index.AbstractIndexComponent
getIndexSettings, index
-
Methods inherited from class org.elasticsearch.index.analysis.AbstractTokenFilterFactory
name, version
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.index.analysis.TokenFilterFactory
breaksFastVectorHighlighter
-
-
-
-
Field Detail
-
ignoreCase
@Deprecated protected final boolean ignoreCase
Deprecated.this property only works with tokenizer property
-
format
protected final java.lang.String format
-
expand
protected final boolean expand
-
lenient
protected final boolean lenient
-
settings
protected final Settings settings
-
tokenizerFactory
@Deprecated protected final TokenizerFactory tokenizerFactory
Deprecated.This filter tokenize synonyms with whatever tokenizer and token filters appear before it in the chain in 6.0.
-
-
Constructor Detail
-
SynonymTokenFilterFactory
public SynonymTokenFilterFactory(IndexSettings indexSettings, Environment env, AnalysisRegistry analysisRegistry, java.lang.String name, Settings settings) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
create
public org.apache.lucene.analysis.TokenStream create(org.apache.lucene.analysis.TokenStream tokenStream)
-
getRulesFromSettings
protected java.io.Reader getRulesFromSettings(Environment env)
-
-