We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
found
When deleting a document the classical way, we get the found field, telling us whether the document was already deleted or not:
$ curl -XDELETE 'localhost:9200/index/type/1' {"ok":true,"found":true,"_index":"index","_type":"type","_id":"1","_version":2} # `found` is true $ curl -XDELETE 'localhost:9200/index/type/1' {"ok":true,"found":false,"_index":"index","_type":"type","_id":"1","_version":3} # `found` is now false
When using the _bulk api, we get the same answer, except for the missing found field:
_bulk
$ curl -XDELETE 'localhost:9200/index/type/1' -d "$(echo -e '{"delete":{"_id":"1"}}\n ')" {"took":1,"items":[{"delete":{"_index":"index","_type":"type","_id":"1","_version":1,"ok":true}}]} # `found` is missing $ curl -XDELETE 'localhost:9200/index/type/1' -d "$(echo -e '{"delete":{"_id":"1"}}\n ')" {"took":1,"items":[{"delete":{"_index":"index","_type":"type","_id":"1","_version":2,"ok":true}}]} # `found` is missing
The text was updated successfully, but these errors were encountered:
b116097
Add found field for bulk deletes. Closes #3320
7d18070
Add found field for bulk deletes. Closes elastic#3320
cc002b2
No branches or pull requests
When deleting a document the classical way, we get the
found
field, telling us whether the document was already deleted or not:When using the
_bulk
api, we get the same answer, except for the missingfound
field:The text was updated successfully, but these errors were encountered: