@Override
    public int hashCode() {
        return Objects.hash(name, fieldNames);
    }
Use a random field in this to determine its properties. Any inconsistency will have been warned about on deploy.
container-search/src/main/java/com/yahoo/search/schema/FieldSet.java