From 7e1fd3d1e84af3e14918e90673edd5510d7f6278 Mon Sep 17 00:00:00 2001 From: yukun Date: Mon, 3 Aug 2020 11:59:02 +0800 Subject: [PATCH] Fix bug (#3106) * Fix Block Format Read bug Signed-off-by: fishpenguin * Fix Search crash bug Signed-off-by: fishpenguin * Fix CreateCollection bug Signed-off-by: fishpenguin Co-authored-by: Wang XiangYu --- core/src/server/delivery/request/CreateCollectionReq.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/server/delivery/request/CreateCollectionReq.cpp b/core/src/server/delivery/request/CreateCollectionReq.cpp index 9c915036e..03c7d062d 100644 --- a/core/src/server/delivery/request/CreateCollectionReq.cpp +++ b/core/src/server/delivery/request/CreateCollectionReq.cpp @@ -91,9 +91,7 @@ CreateCollectionReq::OnExecute() { } auto field = std::make_shared(field_name, 0, field_type, field_params); - auto field_element = std::make_shared( - 0, 0, index_name, engine::FieldElementType::FET_INDEX, index_params); - create_collection_context.fields_schema[field] = {field_element}; + create_collection_context.fields_schema[field] = {}; } // step 3: create collection -- GitLab