title: Elasticsearch updates in transaction
body: <p>I have following situation:</p>
  
  <p>The blue circle represents a start/end of a transaction. The green dots are es updates.</p>
  
  <p><img src="https://i.stack.imgur.com/Tznlh.png" alt="transactions"></p>
  
  <p>If the transaction fails due to for example 2 users editing the same row (rowVersion error), I want to rollback the es index updates in the transaction.</p>
  
  <p>I know there is a version for every update but how do I revert 1, 3, 5 and 6?</p>
  
  <p>Is there a better solution? I was thinking in the line of keeping changes and do an update after the commit. But what if my index update fails?</p>