Package org.elasticsearch.index.analysis
Class IndexAnalyzers
org.elasticsearch.index.analysis.IndexAnalyzers
- All Implemented Interfaces:
,
public final class IndexAnalyzers
extends
implements
IndexAnalyzers contains a name to analyzer mapping for a specific index.
This class only holds analyzers that are explicitly configured for an index and doesn't allow
access to individual tokenizers, char or token filter.
- See Also:
AnalysisRegistry
-
Constructor Summary
ConstructorDescription<,NamedAnalyzer> analyzers, <,NamedAnalyzer> normalizers, <,NamedAnalyzer> whitespaceNormalizers)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
name)
Returns an analyzer mapped to the given name ornull
if not present<,NamedAnalyzer>
Returns an (unmodifiable) map of containing the index analyzersReturns the default index analyzer for this indexReturns the default search analyzer for this index.Returns the default search quote analyzer for this indexname)
Returns a normalizer mapped to the given name ornull
if not presentname)
Returns a normalizer that splits on whitespace mapped to the given name ornull
if not presentMethods inherited from class java.lang.
, , , , , , , , , ,
-
Constructor Details
-
IndexAnalyzers
public IndexAnalyzers(<,NamedAnalyzer> analyzers, <,NamedAnalyzer> normalizers, <,NamedAnalyzer> whitespaceNormalizers)
-
-
Method Details
-
get
public name)Returns an analyzer mapped to the given name ornull
if not present -
getAnalyzers
Returns an (unmodifiable) map of containing the index analyzers -
getNormalizer
public name)Returns a normalizer mapped to the given name ornull
if not present -
getWhitespaceNormalizer
public name)Returns a normalizer that splits on whitespace mapped to the given name ornull
if not present -
getDefaultIndexAnalyzer
Returns the default index analyzer for this index -
getDefaultSearchAnalyzer
Returns the default search analyzer for this index. If not set, this will return the default analyzer -
getDefaultSearchQuoteAnalyzer
Returns the default search quote analyzer for this index -
close
public void close() throws- Specified by:
in interface
- Specified by:
in interface
- Throws:
-