private void clearSummaryAttributeAspectForExplicitSummaryFields() {
        for (DocumentSummary docSum : schema.getSummaries().values()) {
            docSum.getSummaryFields().values().stream()
                    .filter(summaryField  -> summaryField.getDataType() instanceof NewDocumentReferenceDataType)
                    .forEach(summaryField -> summaryField.setTransform(SummaryTransform.NONE));
        }
    }
Class that processes reference fields and removes attribute aspect of such fields from summary.

A document summary for a reference field should always be fetched from the document instance in back-end
as the attribute vector does not store the original document id string.

@author geirst
config-model/src/main/java/com/yahoo/schema/processing/ReferenceFieldsProcessor.java