@Override
    public int hashCode() {
        return Objects.hash(weight, fromSpecialToken, creator, annotations, isRanked, usePositionData, label,
                            uniqueID, connectedItem, connectivity, significance, documentFrequency, language);
    }
Returns whether this item is of the same class and contains the same state as the given item.
container-search/src/main/java/com/yahoo/prelude/query/Item.java