static private boolean isPrimitiveAttribute(AttributesConfig.Attribute attribute) {
        var datatype = attribute.datatype();
        return  datatype == AttributesConfig.Attribute.Datatype.INT8 ||
                datatype == AttributesConfig.Attribute.Datatype.INT16 ||
                datatype == AttributesConfig.Attribute.Datatype.INT32 ||
                datatype == AttributesConfig.Attribute.Datatype.INT64 ||
                datatype == AttributesConfig.Attribute.Datatype.STRING ||
                datatype == AttributesConfig.Attribute.Datatype.FLOAT ||
                datatype == AttributesConfig.Attribute.Datatype.DOUBLE;
    }
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