public boolean isSameShard(ShardRouting other){
  return index.equals(other.index) && shardId == other.shardId;
}

public boolean isSameShard ( ShardRouting other ) { return index . equals ( other . index ) && shardId == other . shardId ; }
returns true if this routing has the same shardid as another
