Class UnstemmedAnalyzerProvider
- java.lang.Object
-
- com.atlassian.confluence.plugins.opensearch.analysis.analyzer.UnstemmedAnalyzerProvider
-
- All Implemented Interfaces:
OpenSearchAnalyzerProvider
public class UnstemmedAnalyzerProvider extends Object implements OpenSearchAnalyzerProvider
Provides an OpenSearch analyzer forUnstemmedAnalyzerDescriptor
for the current language.
-
-
Constructor Summary
Constructors Constructor Description UnstemmedAnalyzerProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opensearch.client.opensearch._types.analysis.Analyzer
getAnalyzer()
Class<? extends MappingAnalyzerDescriptor>
getMappingClass()
String
getName()
boolean
isCustom()
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMappingClass
public Class<? extends MappingAnalyzerDescriptor> getMappingClass()
- Specified by:
getMappingClass
in interfaceOpenSearchAnalyzerProvider
- Returns:
- the concrete type of
MappingAnalyzerDescriptor
that's mapped to this analyzer
-
getName
public String getName()
- Specified by:
getName
in interfaceOpenSearchAnalyzerProvider
- Returns:
- the analyzer name that is registered in OpenSearch. It should be unique within the index it is used.
-
isCustom
public boolean isCustom()
- Specified by:
isCustom
in interfaceOpenSearchAnalyzerProvider
- 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.
-
getAnalyzer
public org.opensearch.client.opensearch._types.analysis.Analyzer getAnalyzer()
- Specified by:
getAnalyzer
in interfaceOpenSearchAnalyzerProvider
- Returns:
- the OpenSearch analyzer for the given v2 analyzer specified at
OpenSearchAnalyzerProvider.getMappingClass()
.
-
-