Prior to 6.x, I believe something like this would work:
{"update":{"_type":"submission","_index":"rs_2018-05","_id":511393606}}
{"script":{"source":"ctx._source.num_comments += params.count","lang":"painless","params":{"count":1}},"upsert":null}
Now this just throws an error. There is really no way to update documents and ignore missing documents without polluting the logs with a bunch of error messages from doing bulk updates.
It would be very helpful to supply some type of "document_missing":"ignore" functionality so that missing documents that are updated by scripts are silently ignored. As of right now, bulk updates still complete successfully when there are missing documents, but there is no way to suppress the missing document errors that get written to the logs.
Thank you!