What is the difference between BulkProcessor and BulkRequestBuilder - elasticSearch (java)?

I've worked with BulkRequestBuilder

and it works great, but I also want to use BulkProcessor

. Can someone help me understand what is the difference between the two?

+4


source to share


1 answer


BulkRequestBuilder

is part of the Bulk API and allows you to index and delete multiple documents in one request.

And, according to the documentation section Using Bulk Processor :



The BulkProcessor class offers a simple interface to automatically clean up bulk operations based on the number or size of requests, or after a specified period.

0


source







All Articles