Class StandardAnalyzerProvider
- java.lang.Object
-
- com.atlassian.confluence.plugins.opensearch.analysis.analyzer.StandardAnalyzerProvider
-
- All Implemented Interfaces:
OpenSearchAnalyzerProvider
public class StandardAnalyzerProvider extends Object implements OpenSearchAnalyzerProvider
Provides OpenSearch analyzer forStandardAnalyzerDescriptor.It applies the stop words of the current language on top of OpenSearch standard analyzer.
- Since:
- 8.7
-
-
Constructor Summary
Constructors Constructor Description StandardAnalyzerProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opensearch.client.opensearch._types.analysis.AnalyzergetAnalyzer()Class<? extends MappingAnalyzerDescriptor>getMappingClass()StringgetName()booleanisCustom()
-
-
-
Field Detail
-
NAME
public static final String NAME
The identifier for OpenSearch to recognise this analyzer.- See Also:
- Constant Field Values
-
-
Method Detail
-
getMappingClass
public Class<? extends MappingAnalyzerDescriptor> getMappingClass()
- Specified by:
getMappingClassin interfaceOpenSearchAnalyzerProvider- Returns:
- the concrete type of
MappingAnalyzerDescriptorthat's mapped to this analyzer
-
getAnalyzer
public org.opensearch.client.opensearch._types.analysis.Analyzer getAnalyzer()
- Specified by:
getAnalyzerin interfaceOpenSearchAnalyzerProvider- Returns:
- the OpenSearch analyzer for the given v2 analyzer specified at
OpenSearchAnalyzerProvider.getMappingClass().
-
getName
public String getName()
- Specified by:
getNamein 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:
isCustomin 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.
-
-