index_shrink
Reduce the number of shards in an index by shrinking a read-only source index into a smaller target index with specified settings.
Instructions
收缩索引(减少分片数)
参数:
source: 源索引名称
target: 目标索引名称
settings: 目标索引设置
注意:源索引必须是只读的,且所有分片在同一节点
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>",
"target": "<target>"
},
"name": "index_shrink"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| target | Yes | ||
| settings | No |