@Override
    public void process(boolean validate, boolean documentsOnly) {
        if ( ! validate) return;
        for (ImmutableSDField field : schema.allConcreteFields()) {
            for (SummaryField summary : field.getSummaryFields().values()) {
                if (summary.getTransform().isBolded() && !DynamicSummaryTransformUtils.hasSupportedType(summary)) {
                    throw new IllegalArgumentException("'bolding: on' for non-text field " +
                                                       "'" + field.getName() + "'" +
                                                       " (" + summary.getDataType() + ")" +
                                                       " is not allowed");
                } else if (summary.getTransform().isDynamic() && !DynamicSummaryTransformUtils.hasSupportedType(summary)) {
                    throw new IllegalArgumentException("'summary: dynamic' for non-text field " +
                                                       "'" + field.getName() + "'" +
                                                       " (" + summary.getDataType() + ")" +
                                                       " is not allowed");
                }
            }
        }
    }
Checks that bolding or dynamic summary is turned on only for text fields. Throws exception if it is turned on for any
other fields (otherwise will cause indexing failure)

@author hmusum
config-model/src/main/java/com/yahoo/schema/processing/Bolding.java