A cancellation that Cancellation requests completes the operation at once: no document is sent anymore, and ErrorOccurred names each document that is not indexed. A shard that has got a document before the cancellation may still index it: the error names such a document as one that may be indexed, and DocumentIndexed occurs when the shard has indexed it.
A cancellation that Cancellation requests completes the operation at once: no document is sent anymore, and ErrorOccurred names each document that is not indexed. A shard that has got a document before the cancellation may still index it: the error names such a document as one that may be indexed, and DocumentIndexed occurs when the shard has indexed it.