# Retry on conflict

**URL:** <https://discuss.elastic.co/t/retry-on-conflict/341591>\
**Category:** Elasticsearch\
**Created:** [August 24, 2023, 4:02pm UTC](https://discuss.elastic.co/t/retry-on-conflict/341591 "2023-08-24T16:02:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vamsi\_krishna\_Ramaya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vamsi_krishna_ramaya/32/124267_2.png) [@Vamsi\_krishna\_Ramaya](https://discuss.elastic.co/u/Vamsi_krishna_Ramaya)\
**Post date:** [August 24, 2023, 4:02pm UTC](https://discuss.elastic.co/t/retry-on-conflict/341591/1 "2023-08-24T16:02:20Z")

</div>

Hi

I am working on a node ja project with elasticsearch so i am trying to create index with out replica even though i added that number\_of\_replicas 0 replica is generating and that gives me problem that document is geting conflict exception so the solution i am looking for is in which method i should add retry\_on\_conflict so that i get my application running

Thanks in advance

---

<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 21, 2023, 4:02pm UTC](https://discuss.elastic.co/t/retry-on-conflict/341591/2 "2023-09-21T16:02:39Z")

</div>

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