From 8b00b11fe5490855270b780e61737518a99d906f Mon Sep 17 00:00:00 2001 From: "peng.xu" Date: Tue, 26 Nov 2019 13:35:02 +0800 Subject: [PATCH] [skip ci](shards): fix bug in search --- shards/mishards/service_handler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shards/mishards/service_handler.py b/shards/mishards/service_handler.py index fc0ee0fa2b..f192aff72c 100644 --- a/shards/mishards/service_handler.py +++ b/shards/mishards/service_handler.py @@ -49,7 +49,7 @@ class ServiceHandler(milvus_pb2_grpc.MilvusServiceServicer): status = status_pb2.Status(error_code=status_pb2.SUCCESS, reason="Success") if not files_n_topk_results: - return status, [] + return status, [], [] merge_id_results = [] merge_dis_results = [] @@ -58,8 +58,8 @@ class ServiceHandler(milvus_pb2_grpc.MilvusServiceServicer): for files_collection in files_n_topk_results: if isinstance(files_collection, tuple): status, _ = files_collection - return status, [] - + return status, [], [] + row_num = files_collection.row_num ids = files_collection.ids diss = files_collection.distances # distance collections