index_forcemerge
Force merge index segments to optimize storage and improve search performance by reducing segment count and expunging deleted documents.
Instructions
强制合并索引段
参数:
index: 索引名称(可选)
max_num_segments: 合并到的最大段数
only_expunge_deletes: 仅清除已删除文档
注意:这是资源密集型操作,建议在低峰期执行
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "index_forcemerge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | ||
| max_num_segments | No | ||
| only_expunge_deletes | No |