Bulk API

Bulk API is ideal for indexing or deleting large sets of data. Create, index, update, and delete operations are supported. For each request along with the document source, metadata information, such as index name, type, unique identifier, and routing, should be provided. Each bulk request is separated by a new line. A bulk request can have a mixture of create, index, update, and delete requests. The node receiving the bulk request (also known as coordinating node) groups the requests by the shard they belong to and executes them in parallel. The thread pools that execute single and bulk requests are independent.

Let's say we are adding shirts to the e-commerce inventory. We can use the bulk API to add the product documents to the ...

Get Learning Elasticsearch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.