最近更新时间:2024.04.16 13:11:56
首次发布时间:2023.12.21 19:03:20
DropIndex 用于删除指定数据集 Collection 的指定索引 Index。
参数 | 类型 | 是否必选 | 参数说明 |
---|---|---|---|
collectionName | string | 是 | 指定要删除索引所属的 Collection 名称。
|
indexName | string | 是 | 指定要删除的 Index 名称。
|
err := service.DropIndex("go", "goIndex") if err != nil { fmt.Println(err) }
Go 调用执行上面的任务,执行成功无返回信息。