gpt4 book ai didi

amazon-web-services - 如何在Elasticsearch 5.6中删除按查询删除的已完成任务?

转载 作者:行者123 更新时间:2023-12-02 22:46:06 25 4
gpt4 key购买 nike

我目前有一个完成的按查询删除任务:

curl -XGET "http://localhost/_tasks/x0i0D1FdEs-M29DDewnPwkg:257894116" {"completed":true,"task":{"node":"x0i0D1FdEs-M29DDewnPwkg","id":257894116,"type":"transport","action":"indices:data/write/delete/byquery","status":{"total":2650620,"updated":0,"created":0,"deleted":2650620,"batches":2651,"version_conflicts":0,"noops":0,"retries":{"bulk":0,"search":0},"throttled_millis":0,"requests_per_second":-1.0,"throttled_until_millis":0},"description":"delete-by-query [testIndex]","start_time_in_millis":1509555456799,"running_time_in_nanos":386994755521,"cancellable":true},"response":{"took":386993,"timed_out":false,"total":2650620,"updated":0,"created":0,"deleted":2650620,"batches":2651,"version_conflicts":0,"noops":0,"retries":{"bulk":0,"search":0},"throttled_millis":0,"requests_per_second":-1.0,"throttled_until_millis":0,"failures":[]}}%



Tasks的按查询删除文档显示以下内容:

If the request contains wait_for_completion=false then Elasticsearch will perform some preflight checks, launch the request, and then return a task which can be used with Tasks APIs to cancel or get the status of the task. Elasticsearch will also create a record of this task as a document at .tasks/task/${taskId}. This is yours to keep or remove as you see fit. When you are done with it, delete it so Elasticsearch can reclaim the space it uses.



但是,当我运行以下命令时:

curl -XDELETE "http:localhost/_tasks/x0i0D1FdEs-M29DDewnPwkg:257894116"



我懂了

No handler found for uri [/_tasks/x0i0D1FdEs-M29DDewnPwkg:257894116] and method [DELETE]%

最佳答案

您需要使用以下命令删除任务

curl -XDELETE "http:localhost/.tasks/task/x0i0D1FdEs-M29DDewnPwkg:257894116"

关于amazon-web-services - 如何在Elasticsearch 5.6中删除按查询删除的已完成任务?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47297181/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com