Class IndexAnalysisFactory
java.lang.Object
com.atlassian.confluence.plugins.opensearch.analysis.IndexAnalysisFactory
Factory class to create OpenSearch index analysis settings needed at index creation time.
Currently, we only have analyzers and token filters.
- Since:
- 8.7
-
Field Summary
-
Constructor Summary
ConstructorDescriptionIndexAnalysisFactory
(List<OpenSearchAnalyzerProvider> analyzerProviders, List<OpenSearchCustomTokenFilterProvider> customTokenFilterProviders, List<OpenSearchTokenizerProvider> openSearchTokenizerProviders, List<OpenSearchCustomCharacterFilterProvider> customCharacterFilterProviders, DelegatingLanguageAnalyzerProvider delegatingLanguageAnalyzerProvider, ConfluenceDefaultNormalizerFactory defaultNormalizerFactory, OpenSearchAnalyzerMapper analyzerMapper) -
Method Summary
Modifier and TypeMethodDescriptionorg.opensearch.client.opensearch.indices.IndexSettingsAnalysis
createForCustomIndex
(@Nullable AnalyzerDescriptorProvider defaultAnalyzerProvider) Create OpenSearch index analysis settings for custom indexes.org.opensearch.client.opensearch.indices.IndexSettingsAnalysis
Create OpenSearch index analysis settings for system indexes.
-
Field Details
-
DEFAULT_ANALYZER
- See Also:
-
DEFAULT_SEARCH_ANALYZER
- See Also:
-
-
Constructor Details
-
IndexAnalysisFactory
public IndexAnalysisFactory(List<OpenSearchAnalyzerProvider> analyzerProviders, List<OpenSearchCustomTokenFilterProvider> customTokenFilterProviders, List<OpenSearchTokenizerProvider> openSearchTokenizerProviders, List<OpenSearchCustomCharacterFilterProvider> customCharacterFilterProviders, DelegatingLanguageAnalyzerProvider delegatingLanguageAnalyzerProvider, ConfluenceDefaultNormalizerFactory defaultNormalizerFactory, OpenSearchAnalyzerMapper analyzerMapper)
-
-
Method Details
-
createForSystemIndex
public org.opensearch.client.opensearch.indices.IndexSettingsAnalysis createForSystemIndex()Create OpenSearch index analysis settings for system indexes.- Returns:
- index analysis settings
-
createForCustomIndex
public org.opensearch.client.opensearch.indices.IndexSettingsAnalysis createForCustomIndex(@Nullable AnalyzerDescriptorProvider defaultAnalyzerProvider) Create OpenSearch index analysis settings for custom indexes.- Parameters:
defaultAnalyzerProvider
- default analyzer for both indexing and searching. If null, it will default to keyword analyzer.- Returns:
- index analysis settings
-