# Indexing Documents in batches

**URL:** <https://discuss.elastic.co/t/indexing-documents-in-batches/150111>\
**Category:** Elasticsearch\
**Created:** [September 27, 2018, 4:24am UTC](https://discuss.elastic.co/t/indexing-documents-in-batches/150111 "2018-09-27T04:24:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ecarmona](https://avatars.discourse-cdn.com/v4/letter/e/c57346/32.png) [@ecarmona](https://discuss.elastic.co/u/ecarmona)\
**Post date:** [September 27, 2018, 4:24am UTC](https://discuss.elastic.co/t/indexing-documents-in-batches/150111/1 "2018-09-27T04:24:31Z")

</div>

Hi There,

Is there a way to index various of documents in one request? for instance, if I would like to index a list of employees, where each employee will become one document;

Is there a way to POST into an index a JSON array?

---

<div class="post-metadata">

**Author:** ![Arvind\_Rao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arvind_rao/32/26758_2.png) [@Arvind\_Rao](https://discuss.elastic.co/u/Arvind_Rao)\
**Post date:** [September 27, 2018, 4:38am UTC](https://discuss.elastic.co/t/indexing-documents-in-batches/150111/2 "2018-09-27T04:38:09Z")

</div>

Bulk API supports this for indexing, updating and deleting a batch of documents.

[https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html)

---

<div class="post-metadata">

**Author:** ![ecarmona](https://avatars.discourse-cdn.com/v4/letter/e/c57346/32.png) [@ecarmona](https://discuss.elastic.co/u/ecarmona)\
**Post date:** [September 27, 2018, 4:54am UTC](https://discuss.elastic.co/t/indexing-documents-in-batches/150111/3 "2018-09-27T04:54:03Z")

</div>

Thank you @Arvind_Rao! I will try the bulk API

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 25, 2018, 4:54am UTC](https://discuss.elastic.co/t/indexing-documents-in-batches/150111/4 "2018-10-25T04:54:06Z")

</div>

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