diff --git a/internal/core/src/common/Schema.cpp b/internal/core/src/common/Schema.cpp index 63bb40de4b96db84606a77a3371aed9dcb140a91..0d7d6edc99b6f69880683015cb3248e5aaf55760 100644 --- a/internal/core/src/common/Schema.cpp +++ b/internal/core/src/common/Schema.cpp @@ -60,7 +60,7 @@ Schema::ParseFrom(const milvus::proto::schema::CollectionSchema& schema_proto) { if (!index_map.count("metric_type")) { auto default_metric_type = data_type == DataType::VECTOR_FLOAT ? MetricType::METRIC_L2 : MetricType::METRIC_Jaccard; - index_map["metric_type"] = default_metric_type; + index_map["metric_type"] = MetricTypeToName(default_metric_type); } AssertInfo(type_map.count("dim"), "dim not found");