A document is routed to a particular shard in an index using the following formula: num_primary_shards is the value of the index.number_of_shards index...