Java BulkProcessor

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

Welcome!

There is a plan to reintroduce it within the new client. See

In the meantime, you could do something very similar by yourself. See

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.