Class FilenameAnalyzerProvider
java.lang.Object
com.atlassian.confluence.plugins.opensearch.analysis.analyzer.FilenameAnalyzerProvider
- All Implemented Interfaces:
OpenSearchAnalyzerProvider
Provides OpenSearch analyzer for
FilenameAnalyzerDescriptor
.
It's equivalent to ConfluenceFilenameAnalyzer
in Lucene.- Since:
- 8.7
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.opensearch.client.opensearch._types.analysis.Analyzer
Class<? extends MappingAnalyzerDescriptor>
getName()
boolean
isCustom()
-
Field Details
-
NAME
The identifier that OpenSearch recognizes when setting up the custom analyzer.- See Also:
-
-
Constructor Details
-
FilenameAnalyzerProvider
-
-
Method Details
-
getMappingClass
- Specified by:
getMappingClass
in interfaceOpenSearchAnalyzerProvider
- Returns:
- the concrete type of
MappingAnalyzerDescriptor
that's mapped to this analyzer
-
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()
.
-
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.
-