# Is ES support transaction? such as rollback?

**URL:** <https://discuss.elastic.co/t/is-es-support-transaction-such-as-rollback/12579>\
**Category:** Elasticsearch\
**Created:** [June 28, 2013, 10:27am UTC](https://discuss.elastic.co/t/is-es-support-transaction-such-as-rollback/12579 "2013-06-28T10:27:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dancer](https://avatars.discourse-cdn.com/v4/letter/d/e5b9ba/32.png) [@dancer](https://discuss.elastic.co/u/dancer)\
**Post date:** [June 28, 2013, 10:27am UTC](https://discuss.elastic.co/t/is-es-support-transaction-such-as-rollback/12579/1 "2013-06-28T10:27:09Z")

</div>

I cannot find any API about that.  
is that means ES doesnot support transaction?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 28, 2013, 10:52am UTC](https://discuss.elastic.co/t/is-es-support-transaction-such-as-rollback/12579/2 "2013-06-28T10:52:34Z")

</div>

No, it doesn't.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 28 juin 2013 à 12:27, dancer [chuanhua.deng@gmail.com](mailto:chuanhua.deng@gmail.com) a écrit :

## I cannot find any API about that. is that means ES doesnot support transaction?

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![brian\_yoder](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@brian\_yoder](https://discuss.elastic.co/u/brian_yoder)\
**Post date:** [June 28, 2013, 9:55pm UTC](https://discuss.elastic.co/t/is-es-support-transaction-such-as-rollback/12579/3 "2013-06-28T21:55:09Z")

</div>

But, it does support versioned (sometimes called optimistically versioned)  
updates. With properly written clients, each can:

1. Get the document and note its version number, update field A, and put  
the document with the updated source and the version number.

2. If it fails due to version conflict, repeat.

This way, two separate clients can each update their own portions of a  
document and the result will be a proper merge, not a simplistic overwrite.

Something similar can be done with traditional RDBs but it's a whole lot  
simpler (and faster) with Elasticsearch.

Brian

On Friday, June 28, 2013 6:52:34 AM UTC-4, David Pilato wrote:

> No, it doesn't.
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 28 juin 2013 à 12:27, dancer \<[chuanh...@gmail.com](mailto:chuanh...@gmail.com) \<javascript:\>\> a  
> écrit :
> 
> I cannot find any API about that.  
> is that means ES doesnot support transaction?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dancer](https://avatars.discourse-cdn.com/v4/letter/d/e5b9ba/32.png) [@dancer](https://discuss.elastic.co/u/dancer)\
**Post date:** [June 29, 2013, 9:46am UTC](https://discuss.elastic.co/t/is-es-support-transaction-such-as-rollback/12579/4 "2013-06-29T09:46:26Z")

</div>

How it save that scene:  
client-a insert a row with 3 field but failed and need do retry, when  
client-a retrying, client-b update one field.

I think your search and update may have some problems with my scene blong.  
thanks.  
在 2013年6月29日星期六UTC+8上午5时55分09秒，InquiringMind写道：

> But, it does support versioned (sometimes called optimistically versioned)  
> updates. With properly written clients, each can:
> 
> 1. Get the document and note its version number, update field A, and put  
> the document with the updated source and the version number.
> 
> 2. If it fails due to version conflict, repeat.
> 
> This way, two separate clients can each update their own portions of a  
> document and the result will be a proper merge, not a simplistic overwrite.
> 
> Something similar can be done with traditional RDBs but it's a whole lot  
> simpler (and faster) with Elasticsearch.
> 
> Brian
> 
> On Friday, June 28, 2013 6:52:34 AM UTC-4, David Pilato wrote:
> 
> > No, it doesn't.
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 28 juin 2013 à 12:27, dancer [chuanh...@gmail.com](mailto:chuanh...@gmail.com) a écrit :
> > 
> > I cannot find any API about that.  
> > is that means ES doesnot support transaction?
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:28am UTC](https://discuss.elastic.co/t/is-es-support-transaction-such-as-rollback/12579/5 "2017-07-06T02:28:56Z")

</div>


