The docs state:
Many times, the routing value is not known when deleting a document. For
those cases, when specifying the _routing mapping as required, and
no routing value is specified, the delete will be broadcast
automatically to all shards.
But in a separate section there seems to be a contradicting statement:
The delete API used to be broadcast to all shards in the index which meant
that, when using custom routing, the routing parameter was optional. Now,
the delete request is forwarded only to the shard holding the document. If you
are using custom routing then you should specify the routing value when
deleting a document, just as is already required for the index, create,
and update APIs.To make sure that you never forget a routing value, make routing required
Given a custom routing id:
-
If you map routing as required and then do not submit a routing id during DELETE, does it broadcast to all shards, or does it fail?
-
Alternatively, if you don't map routing as required, and then do not submit a routing id during DELETE, does it also broadcast, or does it fail?