# Is Bulk Index create Index for all documents or some of them?

**URL:** <https://discuss.elastic.co/t/is-bulk-index-create-index-for-all-documents-or-some-of-them/146532>\
**Category:** Elasticsearch\
**Created:** [August 29, 2018, 12:46pm UTC](https://discuss.elastic.co/t/is-bulk-index-create-index-for-all-documents-or-some-of-them/146532 "2018-08-29T12:46:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaurav\_Patel](https://avatars.discourse-cdn.com/v4/letter/g/bc79bd/32.png) [@Gaurav\_Patel](https://discuss.elastic.co/u/Gaurav_Patel)\
**Post date:** [August 29, 2018, 12:46pm UTC](https://discuss.elastic.co/t/is-bulk-index-create-index-for-all-documents-or-some-of-them/146532/1 "2018-08-29T12:46:34Z")

</div>

I want to use bulk Index to Insert multiple(10) objects.

I wanted to know if during insert operation out of 10 objects, 3 object not inserted. in that case BulkIndex operation will rollback operation or not.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [August 29, 2018, 12:48pm UTC](https://discuss.elastic.co/t/is-bulk-index-create-index-for-all-documents-or-some-of-them/146532/2 "2018-08-29T12:48:25Z")

</div>

There is no rollback in Elasticsearch, but the response will show which were successful and which were not.

---

<div class="post-metadata">

**Author:** ![Gaurav\_Patel](https://avatars.discourse-cdn.com/v4/letter/g/bc79bd/32.png) [@Gaurav\_Patel](https://discuss.elastic.co/u/Gaurav_Patel)\
**Post date:** [August 30, 2018, 5:21am UTC](https://discuss.elastic.co/t/is-bulk-index-create-index-for-all-documents-or-some-of-them/146532/3 "2018-08-30T05:21:18Z")

</div>

Thanks @Christian_Dahlqvist, got your point. I need to implement custom logic it.

Hope in feature release we may get this functionality.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [August 30, 2018, 5:23am UTC](https://discuss.elastic.co/t/is-bulk-index-create-index-for-all-documents-or-some-of-them/146532/4 "2018-08-30T05:23:08Z")

</div>

Elasticsearch does not support transactions, so I do not think there are any plans to implement rollbacks.

---

<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:** [September 27, 2018, 5:23am UTC](https://discuss.elastic.co/t/is-bulk-index-create-index-for-all-documents-or-some-of-them/146532/5 "2018-09-27T05:23:17Z")

</div>

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