添加刷新索引接口

finance
杨赟 2 years ago
parent 0dd5f0eda3
commit 9f30380bce

@ -28,3 +28,13 @@ func (o *opensearch) Analyzer(ctx context.Context, args ArgsOpensearchToken) (re
err = xClient.Call(ctx, "Analyzer", args, &result) err = xClient.Call(ctx, "Analyzer", args, &result)
return return
} }
// IndicesRefresh @Title 刷新索引
func (o *opensearch) IndicesRefresh(ctx context.Context) error {
xClient, err := client.GetClient(o)
if err != nil {
return err
}
reply := 0
return xClient.Call(ctx, "IndicesRefresh", 0, &reply)
}

Loading…
Cancel
Save