The document payload of the Delete api

Hi all,

I am wondering whether the delete API support to return the content of the
deleted documents because I need to know the content of the deleted
documents.

Of course, I can get the document first and then delete it with two REST
API. But are there any api to achieve it?

any suggestions?

Best,

Ivan

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b290ad84-5870-4651-a30a-c8848cf2f062%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Unfortunately, you'll have to GET it first.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/49c78498-d1b6-44ce-bb85-b6f9d9d9b7a7%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

And note that if you GET it and save the version number, and then pass the
version number into the DELETE, you can be sure it will be deleted only if
nobody else updated it in the meantime.

This all works so much better in Java than in scripts + curl.

Brian

On Tuesday, February 25, 2014 9:35:37 AM UTC-5, Binh Ly wrote:

Unfortunately, you'll have to GET it first.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/f3e7e97a-284b-4d3a-b333-b03b8c9f65fe%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.