public boolean equalsIgnoringMetaData(ShardRouting other){
  if (primary != other.primary) {
    return false;
  }
  if (shardId != other.shardId) {
    return false;
  }
  if (currentNodeId != null ? !currentNodeId.equals(other.currentNodeId) : other.currentNodeId != null) {
    return false;
  }
  if (index != null ? !index.equals(other.index) : other.index != null) {
    return false;
  }
  if (relocatingNodeId != null ? !relocatingNodeId.equals(other.relocatingNodeId) : other.relocatingNodeId != null) {
    return false;
  }
  if (allocationId != null ? !allocationId.equals(other.allocationId) : other.allocationId != null) {
    return false;
  }
  if (state != other.state) {
    return false;
  }
  if (restoreSource != null ? !restoreSource.equals(other.restoreSource) : other.restoreSource != null) {
    return false;
  }
  return true;
}

public boolean equalsIgnoringMetaData ( ShardRouting other ) { if ( primary != other . primary ) { return false ; } if ( shardId != other . shardId ) { return false ; } if ( currentNodeId != null ? ! currentNodeId . equals ( other . currentNodeId ) : other . currentNodeId != null ) { return false ; } if ( index != null ? ! index . equals ( other . index ) : other . index != null ) { return false ; } if ( relocatingNodeId != null ? ! relocatingNodeId . equals ( other . relocatingNodeId ) : other . relocatingNodeId != null ) { return false ; } if ( allocationId != null ? ! allocationId . equals ( other . allocationId ) : other . allocationId != null ) { return false ; } if ( state != other . state ) { return false ; } if ( restoreSource != null ? ! restoreSource . equals ( other . restoreSource ) : other . restoreSource != null ) { return false ; } return true ; }
returns true if the current routing is identical to the other routing in all but meta fields , i . e . , version and unassigned info
