Skip to content

Commit

Permalink
fix: Filter index info base on provided field name (#690)
Browse files Browse the repository at this point in the history
See also #689

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
  • Loading branch information
congqixia authored Apr 1, 2024
1 parent d43cd42 commit 3eabbb5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ func (c *GrpcClient) DescribeIndex(ctx context.Context, collName string, fieldNa

indexes := make([]entity.Index, 0, len(idxDesc))
for _, info := range idxDesc {
if fieldName != "" && info.GetFieldName() != fieldName {
continue
}
params := entity.KvPairsMap(info.Params)
it := params["index_type"] // TODO change to const
idx := entity.NewGenericIndex(
Expand Down

0 comments on commit 3eabbb5

Please sign in to comment.