# How about transactions in elasticsearch

**URL:** <https://discuss.elastic.co/t/how-about-transactions-in-elasticsearch/10258>\
**Category:** Elasticsearch\
**Created:** [January 8, 2013, 7:16am UTC](https://discuss.elastic.co/t/how-about-transactions-in-elasticsearch/10258 "2013-01-08T07:16:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Janusz\_Dalecki](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Janusz\_Dalecki](https://discuss.elastic.co/u/Janusz_Dalecki)\
**Post date:** [January 8, 2013, 7:16am UTC](https://discuss.elastic.co/t/how-about-transactions-in-elasticsearch/10258/1 "2013-01-08T07:16:40Z")

</div>

Hi,  
I started to wonder how elasticsearch handles transaction with the shards –  
is it at all possible?  
Is elsaticsearch transaction-less app – and is left to the main CRUD  
database to handle it?  
Regards,  
Janusz

--

---

<div class="post-metadata">

**Author:** ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)\
**Post date:** [January 8, 2013, 8:27am UTC](https://discuss.elastic.co/t/how-about-transactions-in-elasticsearch/10258/2 "2013-01-08T08:27:44Z")

</div>

Hi

Is elsaticsearch transaction-less app – and is left to the main CRUD

> database to handle it?

IMO yes, it is up to external system to handle transactions.

As soon as you index a single document and receive response (success) then  
the document can be retrieved (get by ID [1]) and once refresh [2] happens  
on ES side (can be forced or happens automatically in intervals [3]) the  
document can be searched by query.

Regards,  
Lukas

[1] [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/get.html)  
[2]  
[Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-indices-refresh.html)  
[3] [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/index-modules/) -\> see  
index.refresh\_interval

--

---

<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 6, 2017, 2:57am UTC](https://discuss.elastic.co/t/how-about-transactions-in-elasticsearch/10258/3 "2017-07-06T02:57:25Z")

</div>


