Class OpenSearchBulkIndexWriter
java.lang.Object
com.atlassian.confluence.plugins.opensearch.bulk.OpenSearchBulkIndexWriter
- All Implemented Interfaces:
SearchIndexWriter
An index writer that uses OpenSearch bulk API.
- Since:
- 8.7
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchBulkIndexWriter(org.opensearch.client.opensearch.OpenSearchClient client, OpenSearchIndexManager indexManager, String indexName, DelegatingQueryMapper queryMapper, io.github.resilience4j.retry.RetryRegistry retryRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(AtlassianDocument document) protected Map<String, Collection<Object>> convert(AtlassianDocument document) voiddelete(SearchQuery searchQuery) voidvoidflush()voidvoidvoidupdate(String documentId, AtlassianDocument document) Applies partial updates to the document with the given id.
-
Field Details
-
MAX_DOCS
public static final int MAX_DOCS- See Also:
-
OPTIMIZE_RAM_PROPERTY
- See Also:
-
OPTIMIZE_RAM_DEFAULT
public static final int OPTIMIZE_RAM_DEFAULT- See Also:
-
-
Constructor Details
-
OpenSearchBulkIndexWriter
public OpenSearchBulkIndexWriter(org.opensearch.client.opensearch.OpenSearchClient client, OpenSearchIndexManager indexManager, String indexName, DelegatingQueryMapper queryMapper, io.github.resilience4j.retry.RetryRegistry retryRegistry)
-
-
Method Details
-
getBuffer
-
add
- Specified by:
addin interfaceSearchIndexWriter- Throws:
IOException
-
delete
- Specified by:
deletein interfaceSearchIndexWriter- Throws:
IOException
-
deleteAll
- Specified by:
deleteAllin interfaceSearchIndexWriter- Throws:
IOException
-
flush
- Throws:
IOException
-
preOptimize
public void preOptimize()- Specified by:
preOptimizein interfaceSearchIndexWriter
-
postOptimize
public void postOptimize()- Specified by:
postOptimizein interfaceSearchIndexWriter
-
convert
-
update
Description copied from interface:SearchIndexWriterApplies partial updates to the document with the given id. The updates applied are the fields specified in the document passed as an argument. OpenSearch Only. DO NOT USE for Lucene.- Specified by:
updatein interfaceSearchIndexWriter- Parameters:
documentId- ID of the existing document to be updateddocument- The partial update to be applied to the existing document- Throws:
IOException
-