Add: Definition to check document exists?

I think in some cases we need to check document existence without retrieving any document body,
in my case i use random ordered log for indexing sometime the main log object logged before the child object so we need to check the document existence before indexing. if document fail the log will go back to queue and if document exist will update document with the child log.