public boolean containsField(String fieldName) {
        return fields.stream().anyMatch(field -> field.getName().equals(fieldName));
    }
Deriver of indexschema config containing information of all text index fields with name and data type.

@author geirst
config-model/src/main/java/com/yahoo/schema/derived/IndexSchema.java