From 42be6daa735fbb311bf80ee08b9fedc06dec32b6 Mon Sep 17 00:00:00 2001 From: Cai Zhang Date: Tue, 25 Jun 2024 14:21:18 +0800 Subject: [PATCH] Export indexed rows for descrieb_index Signed-off-by: Cai Zhang --- pymilvus/client/grpc_handler.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pymilvus/client/grpc_handler.py b/pymilvus/client/grpc_handler.py index 30c600489..2c5c1e134 100644 --- a/pymilvus/client/grpc_handler.py +++ b/pymilvus/client/grpc_handler.py @@ -1051,6 +1051,10 @@ def describe_index( check_status(status) if len(response.index_descriptions) == 1: info_dict = {kv.key: kv.value for kv in response.index_descriptions[0].params} + info_dict["total_rows"] = response.index_descriptions[0].total_rows + info_dict["indexed_rows"] = response.index_descriptions[0].indexed_rows + info_dict["pending_index_rows"] = response.index_descriptions[0].pending_index_rows + info_dict["state"] = response.index_descriptions[0].state info_dict["field_name"] = response.index_descriptions[0].field_name info_dict["index_name"] = response.index_descriptions[0].index_name if info_dict.get("params"):