跳到主要内容

drop_index

删除集合上的一个索引

声明

bool drop_index(int coll_handle, string index_name, map opts = {})

参数

参数名描述
coll_handle集合句柄
index_name索引名称
opts操作选项

返回值

true - 删除成功, false - 删除失败

使用方式

返回文档