From 132d27a919e5fcd1a05c8b3c6718e5c3fde843d4 Mon Sep 17 00:00:00 2001 From: "zhenshan.cao" Date: Mon, 22 Jan 2024 17:26:48 +0800 Subject: [PATCH] enhance: print all index params (#236) related: https://github.com/milvus-io/birdwatcher/pull/234 Signed-off-by: zhenshan.cao --- states/etcd/show/index.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/states/etcd/show/index.go b/states/etcd/show/index.go index b142126..001350c 100644 --- a/states/etcd/show/index.go +++ b/states/etcd/show/index.go @@ -83,6 +83,9 @@ func printIndex(index IndexInfoV1) { common.GetKVPair(indexParams, "metric_type"), ) fmt.Printf("Index Params: %s\n", common.GetKVPair(index.info.GetIndexParams(), "params")) + for _, v := range indexParams { + fmt.Printf("%s:%s", v.GetKey(), v.GetValue()) + } fmt.Println("==================================================================") } @@ -97,4 +100,8 @@ func printIndexV2(index indexpbv2.FieldIndex) { common.GetKVPair(indexParams, "metric_type"), ) fmt.Printf("Index Params: %s\n", common.GetKVPair(index.GetIndexInfo().GetUserIndexParams(), "params")) + for _, v := range indexParams { + fmt.Printf("%s:%s", v.GetKey(), v.GetValue()) + } + fmt.Println("==================================================================") }