Class GetReindexRequest
This API follows reindex tasks across node-shutdown relocations, so callers can keep using the original task ID throughout the lifetime of the operation. Returned task IDs and timings reflect the original task, not its relocated successor. Relocated task IDs are also supported. They are followed transparently and return the task ID and timings of the original task.
When the task ID cannot be resolved, the API returns the response below with a 404 status code. This response is used whether the ID is unknown, refers to a non-reindex task, refers to a sliced child subtask, or refers to a task whose node left the cluster with no stored result (e.g. a non-graceful shutdown).
{
"error": {
"type": "resource_not_found_exception",
"reason": "Reindex operation [r1A2WoRbTwKZ516z6NEs5A:36619] not found"
},
"status": 404
}
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Endpoint<GetReindexRequest,GetReindexResponse, ErrorResponse> Endpoint "get_reindex". -
Method Summary
Modifier and TypeMethodDescriptionstatic GetReindexRequestrebuild()final StringtaskId()Required - The ID of the reindex task to retrieve.final Timetimeout()The period to wait for the reindex task to complete whenwait_for_completionistrue.final BooleanIftrue, the request blocks until the reindex task completes, then returns the result.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
Endpoint "get_reindex".
-
-
Method Details
-
of
public static GetReindexRequest of(Function<GetReindexRequest.Builder, ObjectBuilder<GetReindexRequest>> fn) -
taskId
Required - The ID of the reindex task to retrieve.API name:
task_id -
timeout
The period to wait for the reindex task to complete whenwait_for_completionistrue.API name:
timeout -
waitForCompletion
Iftrue, the request blocks until the reindex task completes, then returns the result.API name:
wait_for_completion -
rebuild
- Returns:
- New
GetReindexRequest.Builderinitialized with field values of this instance
-