Interface OpenSearchAnalyzerProvider
-
- All Known Implementing Classes:
ExactAnalyzerProvider
,ExactFilenameAnalyzerProvider
,FilenameAnalyzerProvider
,KeywordAnalyzerProvider
,StandardAnalyzerProvider
,TwoGramAnalyzerProvider
,UnstemmedAnalyzerProvider
,WhitespaceAnalyzerProvider
public interface OpenSearchAnalyzerProvider
Provides an OpenSearchAnalyzer
for a specific ConfluenceMappingAnalyzerDescriptor
. EachMappingAnalyzerDescriptor
must 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.Analyzer
getAnalyzer()
Class<? extends MappingAnalyzerDescriptor>
getMappingClass()
String
getName()
boolean
isCustom()
-
-
-
Method Detail
-
getMappingClass
Class<? extends MappingAnalyzerDescriptor> getMappingClass()
- Returns:
- the concrete type of
MappingAnalyzerDescriptor
that'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.
-
-