Skip to content

Commit

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

Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia committed Apr 1, 2024
1 parent d43cd42 commit fac629c
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 fac629c

Please sign in to comment.