public final class IndexAnalyzers extends AbstractIndexComponent implements java.io.Closeable
AnalysisRegistry
deprecationLogger, logger
Constructor and Description |
---|
IndexAnalyzers(IndexSettings indexSettings,
NamedAnalyzer defaultIndexAnalyzer,
NamedAnalyzer defaultSearchAnalyzer,
NamedAnalyzer defaultSearchQuoteAnalyzer,
java.util.Map<java.lang.String,NamedAnalyzer> analyzers,
java.util.Map<java.lang.String,NamedAnalyzer> normalizers) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
NamedAnalyzer |
get(java.lang.String name)
Returns an analyzer mapped to the given name or
null if not present |
NamedAnalyzer |
getDefaultIndexAnalyzer()
Returns the default index analyzer for this index
|
NamedAnalyzer |
getDefaultSearchAnalyzer()
Returns the default search analyzer for this index
|
NamedAnalyzer |
getDefaultSearchQuoteAnalyzer()
Returns the default search quote analyzer for this index
|
IndexSettings |
getIndexSettings()
Returns the indices settings
|
NamedAnalyzer |
getNormalizer(java.lang.String name)
Returns a normalizer mapped to the given name or
null if not present |
index
public IndexAnalyzers(IndexSettings indexSettings, NamedAnalyzer defaultIndexAnalyzer, NamedAnalyzer defaultSearchAnalyzer, NamedAnalyzer defaultSearchQuoteAnalyzer, java.util.Map<java.lang.String,NamedAnalyzer> analyzers, java.util.Map<java.lang.String,NamedAnalyzer> normalizers)
public NamedAnalyzer get(java.lang.String name)
null
if not presentpublic NamedAnalyzer getNormalizer(java.lang.String name)
null
if not presentpublic NamedAnalyzer getDefaultIndexAnalyzer()
public NamedAnalyzer getDefaultSearchAnalyzer()
public NamedAnalyzer getDefaultSearchQuoteAnalyzer()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public IndexSettings getIndexSettings()
getIndexSettings
in class AbstractIndexComponent