Skip to content

Commit

Permalink
fix: Pass extra params when creating Index (#713)
Browse files Browse the repository at this point in the history
See also #709

Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia authored Apr 11, 2024
1 parent 17959f3 commit ec1cb19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ func (c *GrpcClient) CreateIndex(ctx context.Context, collName string, fieldName
ExtraParams: entity.MapKvPairs(idx.Params()),
}

req.ExtraParams = append(req.ExtraParams, idxDef.params...)

resp, err := c.Service.CreateIndex(ctx, req)
if err != nil {
return err
Expand Down

0 comments on commit ec1cb19

Please sign in to comment.