参考:https://stackoverflow.com/questions/38928991/how-to-detect-if-a-document-update-in-elasticsearch-has-failed#