This link has a good description of Solr's optimistic locking feature: http://yonik.com/solr/optimistic-concurrency/
This is designed for READ-MODIFY-WRITE operations. This will guarantee that you are updating the same version of the document that you read. The full delete of the document though would seem to defeat this as there would be no versioned document to read from. You may have to model your deletes as updates to a delete field to take advantage of this feature. On Tue, Dec 17, 2013 at 9:54 AM, adfel70 <adfe...@gmail.com> wrote: > Hi > in SolrCloud, if I send 2 different requests to solr - one with delete > action of doc with id X and another with add action of doc with the same id > - is it guaranteed that the delete action will occur before the add action? > > Is it guaranteed that after all actions are done, the index will have doc X > with its most updated state? > > thanks. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/solr-cloud-deleting-and-adding-the-same-doc-tp4107111.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- Joel Bernstein Search Engineer at Heliosearch