| 接口 | GET /_tasks?detailed=true&actions=*_search 或 GET /_tasks/<task_id> |
|---|---|
| 取消 | POST /_tasks/<task_id>/_cancel |
| 常用过滤 | actions=*reindex、nodes=<node_id>、group_by=parents |
示例
示例
GET /_tasks?detailed=true&actions=*reindex
GET /_tasks?group_by=parents&human=true
POST /_tasks/oTUltX4IQMOUUVeiohTt74:42/_cancel取消是协作式的:任务在检查点响应取消请求,搜索类任务通常能较快停止。