mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
parent
38266b8569
commit
bf75c2fbb4
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user