anchor.diff:  twitter 0 r STARTED    3014 31.1mb 192.168.56.20 I8hydUG
   twitter 0 r UNASSIGNED ALLOCATION_FAILED
   ---------------------------------------------------------------------------
  -// TESTRESPONSE[non_json]
  -
  -[float]
  -[[reason-unassigned]]
  -==== Reasons for unassigned shard
  -
  -These are the possible reasons for a shard to be in a unassigned state:
  -
  -[horizontal]
  -`INDEX_CREATED`::           Unassigned as a result of an API creation of an index.
  -`CLUSTER_RECOVERED`::       Unassigned as a result of a full cluster recovery.
  -`INDEX_REOPENED`::          Unassigned as a result of opening a closed index.
  -`DANGLING_INDEX_IMPORTED`:: Unassigned as a result of importing a dangling index.
  -`NEW_INDEX_RESTORED`::      Unassigned as a result of restoring into a new index.
  -`EXISTING_INDEX_RESTORED`:: Unassigned as a result of restoring into a closed index.
  -`REPLICA_ADDED`::           Unassigned as a result of explicit addition of a replica.
  -`ALLOCATION_FAILED`::       Unassigned as a result of a failed allocation of the shard.
  -`NODE_LEFT`::               Unassigned as a result of the node hosting it leaving the cluster.
  -`REROUTE_CANCELLED`::       Unassigned as a result of explicit cancel reroute command.
  -`REINITIALIZED`::           When a shard moves from started back to initializing, for example, with shadow replicas.
  -`REALLOCATED_REPLICA`::     A better replica location is identified and causes the existing replica allocation to be cancelled.
  +// TESTRESPONSE[non_json]
positive.code: ---------------------------------------------------------------------------
  // TESTRESPONSE[non_json]
  
  [float]
  [[states]]
  ==== Shard states
  
  Before a shard can be used, it goes through an `INITIALIZING` state.
  `shards` can show you which ones.
  
  [source,js]
  ---------------------------------------------------------------------------
  
negative.code: // TESTRESPONSE[s/H5dfFeA/node-0/ non_json]
  
  
  [[relocation]]
  ===== Example with a relocating shard
  
  [source,js]
  ---------------------------------------------------------------------------
  