elasticsearch-js icon indicating copy to clipboard operation
elasticsearch-js copied to clipboard

bulk helper add onSuccess callback

Open zivni opened this issue 1 year ago • 2 comments

🚀 Feature Proposal

The bulk helper API gives onDrop callback that is called when the document can’t be indexed.

Is it possible to add an onSuccess callback or onIndex callback that will be called when the document is indexed successfully?

Motivation

When uploading from other source a lot of documents using a stream or generator I want to mark the documents that where actually indexed so if the program crashes it can be resumed from the point of failure.

zivni avatar Dec 06 '23 07:12 zivni