@Override
    public boolean equals(Object other) {
        if (other == this) return true;
        if ( ! (other instanceof Hit)) return false;
        return getId().equals(((Hit) other).getId());
    }
Returns true if the argument is a hit having the same id as this
container-search/src/main/java/com/yahoo/search/result/Hit.java