reindex
Rebuilds search indexes by copying documents from a source index to a destination index with optional transformation scripts and document limits.
Instructions
重建索引
参数:
source: 源配置 {"index": "old-index", "query": {...}}
dest: 目标配置 {"index": "new-index"}
script: 转换脚本
max_docs: 最大文档数
示例:
reindex(
source={"index": "old-index"},
dest={"index": "new-index"}
)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| dest | Yes | ||
| script | No | ||
| max_docs | No |