# Consistency level

**URL:** <https://discuss.elastic.co/t/consistency-level/89827>\
**Category:** Elasticsearch\
**Created:** [June 18, 2017, 6:22am UTC](https://discuss.elastic.co/t/consistency-level/89827 "2017-06-18T06:22:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Davidovich](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@Alex\_Davidovich](https://discuss.elastic.co/u/Alex_Davidovich)\
**Post date:** [June 18, 2017, 6:22am UTC](https://discuss.elastic.co/t/consistency-level/89827/1 "2017-06-18T06:22:53Z")

</div>

From what I understand, when indexing a document in a replicated index, the action returns success only after getting ack from the replicas.  
I have an index with 1 shard and 2 replicas.  
Each indexing operation is returned only after the 2 replicas sent ack?  
If so, can it be changed to majority? So I can get ack from 1 replica and return success?

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [June 18, 2017, 2:22pm UTC](https://discuss.elastic.co/t/consistency-level/89827/2 "2017-06-18T14:22:31Z")

</div>

> [@Alex\_Davidovich](#):
>
> Each indexing operation is returned only after the 2 replicas sent ack?

Yes.

> [@Alex\_Davidovich](#):
>
> If so, can it be changed to majority? So I can get ack from 1 replica and return success?

No. The primary waits for ACK from all replicas available at the start of replication before ACKing the client and this is not tunable.

---

<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:** [July 16, 2017, 2:22pm UTC](https://discuss.elastic.co/t/consistency-level/89827/3 "2017-07-16T14:22:44Z")

</div>

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