How to wait for indexing to finish before closing bulkingester

how to wait for indexing to finish before closing bulkingester.

previously we have awaitClose() for bulkprocessor. is is same for bulkingester?
there is no awaitClose, but there is wait() in bulkIngester.
I am not sure if this is the right function to use.
I find no document on this on elasticsearch website.

please give example.

thank you.

But you can call close().

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