Class OpenSearchSearchIndexAccessorFactory
- java.lang.Object
-
- com.atlassian.confluence.plugins.opensearch.OpenSearchSearchIndexAccessorFactory
-
public class OpenSearchSearchIndexAccessorFactory extends Object
A factory to create a newOpenSearchSearchIndexAccessor
for an indexName (core or custom).- Since:
- 8.6
-
-
Constructor Summary
Constructors Constructor Description OpenSearchSearchIndexAccessorFactory(org.opensearch.client.opensearch.OpenSearchClient client, OpenSearchSearchManager searchManager, DelegatingQueryMapper queryMapper, OpenSearchConfig openSearchConfig, OpenSearchIndexManagerFactory indexManagerFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenSearchSearchIndexAccessor
createCustomIndexAccessor(Index index, @Nullable AnalyzerDescriptorProvider analyzerProvider)
Factory method to create accessor for custom index, and initialises it on OpenSearch.OpenSearchSearchIndexAccessor
createSystemIndexAccessor(Index index)
-
-
-
Constructor Detail
-
OpenSearchSearchIndexAccessorFactory
public OpenSearchSearchIndexAccessorFactory(org.opensearch.client.opensearch.OpenSearchClient client, OpenSearchSearchManager searchManager, DelegatingQueryMapper queryMapper, OpenSearchConfig openSearchConfig, OpenSearchIndexManagerFactory indexManagerFactory)
-
-
Method Detail
-
createSystemIndexAccessor
public OpenSearchSearchIndexAccessor createSystemIndexAccessor(Index index)
-
createCustomIndexAccessor
public OpenSearchSearchIndexAccessor createCustomIndexAccessor(Index index, @Nullable AnalyzerDescriptorProvider analyzerProvider) throws IOException
Factory method to create accessor for custom index, and initialises it on OpenSearch. A Johnson event will be raised for system index if there is error in OpenSearch- Parameters:
index
- the index- Returns:
- a newly created accessor for the specified index
- Throws:
IOException
-
-