TokenFilterFactory
, IndexComponent
SynonymGraphTokenFilterFactory
public class SynonymTokenFilterFactory extends AbstractTokenFilterFactory
Modifier and Type | Class | Description |
---|---|---|
class |
SynonymTokenFilterFactory.Factory |
Modifier and Type | Field | Description |
---|---|---|
protected boolean |
expand |
|
protected java.lang.String |
format |
|
protected boolean |
ignoreCase |
Deprecated.
this property only works with tokenizer property
|
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.
|
deprecationLogger, indexSettings, logger
version
Constructor | Description |
---|---|
SynonymTokenFilterFactory(IndexSettings indexSettings,
Environment env,
AnalysisRegistry analysisRegistry,
java.lang.String name,
Settings settings) |
Modifier and Type | Method | Description |
---|---|---|
org.apache.lucene.analysis.TokenStream |
create(org.apache.lucene.analysis.TokenStream tokenStream) |
|
protected java.io.Reader |
getRulesFromSettings(Environment env) |
getIndexSettings, index
name, version
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
breaksFastVectorHighlighter
@Deprecated protected final boolean ignoreCase
protected final java.lang.String format
protected final boolean expand
protected final Settings settings
@Deprecated protected final TokenizerFactory tokenizerFactory
public SynonymTokenFilterFactory(IndexSettings indexSettings, Environment env, AnalysisRegistry analysisRegistry, java.lang.String name, Settings settings) throws java.io.IOException
java.io.IOException
public org.apache.lucene.analysis.TokenStream create(org.apache.lucene.analysis.TokenStream tokenStream)
protected java.io.Reader getRulesFromSettings(Environment env)