Interface OpenSearchAnalyzerProvider
-
- All Known Implementing Classes:
ExactAnalyzerProvider,ExactFilenameAnalyzerProvider,FilenameAnalyzerProvider,KeywordAnalyzerProvider,StandardAnalyzerProvider,TwoGramAnalyzerProvider,UnstemmedAnalyzerProvider,WhitespaceAnalyzerProvider
public interface OpenSearchAnalyzerProviderProvides an OpenSearchAnalyzerfor a specific ConfluenceMappingAnalyzerDescriptor. EachMappingAnalyzerDescriptormust have a corresponding implementation of this interface.- Since:
- 8.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.opensearch.client.opensearch._types.analysis.AnalyzergetAnalyzer()Class<? extends MappingAnalyzerDescriptor>getMappingClass()StringgetName()booleanisCustom()
-
-
-
Method Detail
-
getMappingClass
Class<? extends MappingAnalyzerDescriptor> getMappingClass()
- Returns:
- the concrete type of
MappingAnalyzerDescriptorthat's mapped to this analyzer
-
getAnalyzer
org.opensearch.client.opensearch._types.analysis.Analyzer getAnalyzer()
- Returns:
- the OpenSearch analyzer for the given v2 analyzer specified at
getMappingClass().
-
getName
String getName()
- Returns:
- the analyzer name that is registered in OpenSearch. It should be unique within the index it is used.
-
isCustom
boolean isCustom()
- Returns:
- true if the analyzer needs to be declared as a custom analyzer when the index is created. Or false if the index is available built-in on OpenSearch.
-
-