Atefeh
December 21, 2022, 8:29am
1
Bulk Java API supported adding a payload to each request in ES version 6.8 :
public BulkProcessor add(DocWriteRequest request, @Nullable Object payload) {
internalAdd(request, payload);
return this;
}
But this feature was removed in version7. Is there an alternative solution for this?
I need to report failed documents.
https://discuss.elastic.co/t/java-bulkprocessor-custom-data-in-request-response-items/105963/4
dadoonet
(David Pilato)
December 21, 2022, 9:43am
2
Welcome!
There is a plan to reintroduce it within the new client. See
opened 01:08AM - 14 Jan 22 UTC
>enhancement
v7.16.2
With RHLC, one could use the BulkProcessor API to batch IndexRequests and Delete… Requests. Is there a recommended replacement for BulkProcessor when migrating to elasticsearch-java?
https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/java-docs-bulk-processor.html
In the meantime, you could do something very similar by yourself. See
1 Like
system
(system)
Closed
January 18, 2023, 9:43am
3
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.