Signed-off-by: FluorineDog <guilin.gou@zilliz.com>
This commit is contained in:
FluorineDog 2021-02-25 17:56:43 +08:00 committed by yefu.chen
parent 38266b8569
commit bf75c2fbb4

View File

@ -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");