static private String typeAsString(AttributesConfig.Attribute attribute) {
        var collectiontype = attribute.collectiontype();
        return switch(collectiontype) {
            case SINGLE -> datatypeAsString(attribute);
            case ARRAY -> "array<" + datatypeAsString(attribute) + ">";
            case WEIGHTEDSET -> "weightedset<" + datatypeAsString(attribute) + ">";
        };
    }
Constructs a new instance of this searcher with the given component id and config.

@param clusterConfig The config for the cluster that this searcher is deployed for.
container-search/src/main/java/com/yahoo/search/grouping/GroupingValidator.java