Class OpenSearchIndexWriter
- java.lang.Object
 - 
- com.atlassian.confluence.plugins.opensearch.OpenSearchIndexWriter
 
 
- 
- All Implemented Interfaces:
 SearchIndexWriter
- Direct Known Subclasses:
 OpenSearchBulkIndexWriter
public class OpenSearchIndexWriter extends Object implements SearchIndexWriter
SearchIndexWriter for adding and deleting documents on OpenSearch- Since:
 - 8.6
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classOpenSearchIndexWriter.IndexSetting 
- 
Field Summary
Fields Modifier and Type Field Description protected org.opensearch.client.opensearch.OpenSearchClientclientprotected static StringINDEX_NUMBER_OF_REPLICASprotected static StringINDEX_REFRESH_INTERVALprotected OpenSearchIndexManagerindexManagerprotected StringindexNameprotected Map<String,OpenSearchIndexWriter.IndexSetting>indexSettingsprotected DelegatingQueryMapperqueryMapperRegistry 
- 
Constructor Summary
Constructors Constructor Description OpenSearchIndexWriter(org.opensearch.client.opensearch.OpenSearchClient client, OpenSearchIndexManager indexManager, DelegatingQueryMapper queryMapper) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(AtlassianDocument document)protected Map<String,Collection<Object>>convert(AtlassianDocument document)voiddelete(SearchQuery searchQuery)voiddeleteAll()voidpostOptimize()voidpreOptimize() 
 - 
 
- 
- 
Field Detail
- 
INDEX_REFRESH_INTERVAL
protected static final String INDEX_REFRESH_INTERVAL
- See Also:
 - Constant Field Values
 
 
- 
INDEX_NUMBER_OF_REPLICAS
protected static final String INDEX_NUMBER_OF_REPLICAS
- See Also:
 - Constant Field Values
 
 
- 
client
protected final org.opensearch.client.opensearch.OpenSearchClient client
 
- 
indexName
protected final String indexName
 
- 
indexManager
protected final OpenSearchIndexManager indexManager
 
- 
queryMapperRegistry
protected final DelegatingQueryMapper queryMapperRegistry
 
- 
indexSettings
protected final Map<String,OpenSearchIndexWriter.IndexSetting> indexSettings
 
 - 
 
- 
Constructor Detail
- 
OpenSearchIndexWriter
public OpenSearchIndexWriter(org.opensearch.client.opensearch.OpenSearchClient client, OpenSearchIndexManager indexManager, DelegatingQueryMapper queryMapper) 
 - 
 
- 
Method Detail
- 
add
public void add(AtlassianDocument document) throws IOException
- Specified by:
 addin interfaceSearchIndexWriter- Throws:
 IOException
 
- 
convert
protected Map<String,Collection<Object>> convert(AtlassianDocument document)
 
- 
delete
public void delete(SearchQuery searchQuery) throws IOException
- Specified by:
 deletein interfaceSearchIndexWriter- Throws:
 IOException
 
- 
deleteAll
public void deleteAll() throws IOException- Specified by:
 deleteAllin interfaceSearchIndexWriter- Throws:
 IOException
 
- 
preOptimize
public void preOptimize() throws IOException- Specified by:
 preOptimizein interfaceSearchIndexWriter- Throws:
 IOException
 
- 
postOptimize
public void postOptimize() throws IOException- Specified by:
 postOptimizein interfaceSearchIndexWriter- Throws:
 IOException
 
 - 
 
 -