I'm using elasticsearch client java API 1.6.0 and have a groovy script which deletes attributes from a document. When I execute my script against a non-existent document I get DocumentMissingException. I handle this situation silently by ignoring the exception. Isn't there a better way to do this without catching exceptions? Like an automatic noop detection when doc is not there and the update is not a scriptedUpsert?