Skip to content

change taskId to nodeId:taskId to be more accurate in DeleteByQuery Documentation #31122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions docs/reference/docs/delete-by-query.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ 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 <<docs-delete-by-query-task-api,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
record of this task as a document at `.tasks/task/${nodeId: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.

Expand Down Expand Up @@ -357,7 +357,7 @@ With the task id you can look up the task directly:

[source,js]
--------------------------------------------------
GET /_tasks/taskId:1
GET /_tasks/nodeId:taskId
--------------------------------------------------
// CONSOLE
// TEST[catch:missing]
Expand All @@ -369,6 +369,12 @@ and `wait_for_completion=false` was set on it then it'll come back with
`wait_for_completion=false` creates at `.tasks/task/${taskId}`. It is up to
you to delete that document.

A task with `wait_for_completion=true` is only "in-memory", meaning after completion, the task is gone. Checking the status or deleting the task document from system index `.task` will fail. A task with `wait_for_completion=false` is stored in `.task`. After completion, you can delete the task document to save space:
[source,js]
--------------------------------------------------
DELETE .tasks/task/nodeId:taskId
--------------------------------------------------
// CONSOLE

[float]
[[docs-delete-by-query-cancel-task-api]]
Expand Down