|
|
|
@ -28,3 +28,13 @@ func (o *opensearch) Analyzer(ctx context.Context, args ArgsOpensearchToken) (re
|
|
|
|
|
err = xClient.Call(ctx, "Analyzer", args, &result)
|
|
|
|
|
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)
|
|
|
|
|
}
|
|
|
|
|