private void validateDataTypeForCollectionField(SDField field) {
        if (((CollectionDataType)field.getDataType()).getNestedType() instanceof TensorDataType)
            fail(schema, field, "A field with collection type of tensor is not supported. Use simple type 'tensor' instead.");
    }
Returns whether the given tensor type supports using HNSW index and
nearest neighbor search.
config-model/src/main/java/com/yahoo/schema/processing/TensorFieldProcessor.java