You need to enable JavaScript to run this app.
导航

drop_index

最近更新时间2024.04.30 17:55:01

首次发布时间2024.04.17 14:21:08

概述

drop_index 用于删除指定数据集 Collection 的指定索引 Index。
异步调用使用async_drop_index接口,参数不变。

请求参数

参数

类型

是否必选

参数说明

collection_name

string

指定要删除索引所属的 Collection 名称。

  • 只能使用英文字母、数字、下划线_,并以英文字母开头,不能为空。
  • 长度要求:[1, 128]。
  • Collection 名称不能重复。

index_name

string

指定要删除的 Index 名称。

  • 只能使用英文字母、数字、下划线_,并以英文字母开头,不能为空。
  • 长度要求:[1, 128]。
  • 索引名称不能重复。

示例

请求参数

vikingdb_service.drop_index("example", "example_index")

返回值

Python 调用执行上面的任务,执行成功无返回信息。