From 4cc59f0b5f5c28ed2b566a6c0d3d4bd38585cdd2 Mon Sep 17 00:00:00 2001 From: Congqi Xia Date: Tue, 16 Apr 2024 16:19:26 +0800 Subject: [PATCH] enhance: Export `AlterIndex` API in client interface `AlterIndex` has already been implemented but not exported in client interface. Signed-off-by: Congqi Xia --- client/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/client.go b/client/client.go index 8787fe87..d3691f78 100644 --- a/client/client.go +++ b/client/client.go @@ -120,6 +120,8 @@ type Client interface { // GetIndexState get index state with specified collection and field name // index naming is not supported yet GetIndexState(ctx context.Context, collName string, fieldName string, opts ...IndexOption) (entity.IndexState, error) + // AlterIndex modifies the index params. + AlterIndex(ctx context.Context, collName, indexName string, opts ...IndexOption) error // -- basic operation --