index_set_readonly
Set an index to read-only mode or remove read-only status to prepare for operations like cloning, splitting, or shrinking indexes in Easysearch.
Instructions
设置索引为只读(clone/split/shrink 的前置条件)
参数:
index: 索引名称
readonly: True 设为只读,False 取消只读
示例:
index_set_readonly("my-index", True) # 设为只读
index_set_readonly("my-index", False) # 取消只读
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| readonly | No |