doc_bulk
Perform bulk document operations in Easysearch MCP Server to index, update, or delete multiple documents simultaneously with a single API call.
Instructions
批量操作文档
参数:
operations: 操作列表,每个操作是 {"action": {...}, "doc": {...}} 格式
refresh: 刷新策略
示例:
doc_bulk([
{"index": {"_index": "products", "_id": "1"}, "doc": {"name": "A"}},
{"index": {"_index": "products", "_id": "2"}, "doc": {"name": "B"}},
{"delete": {"_index": "products", "_id": "3"}}
])
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operations | Yes | ||
| refresh | No |