@Override
    public boolean equals(Object o) {
        return this == o || o instanceof Field && super.equals(o) && dataType.equals(((Field) o).dataType);
    }
Two fields are equal if they have the same name and the same data type
document/src/main/java/com/yahoo/document/Field.java