Class ReindexRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.core.ReindexRequest
- All Implemented Interfaces:
JsonpSerializable
Allows to copy documents from one index to another, optionally filtering the
source documents by a query, changing the destination index settings, or
fetching the documents from a remote cluster.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<ReindexRequest>
Json deserializer forReindexRequest
static final Endpoint<ReindexRequest,
ReindexResponse, ErrorResponse> Endpoint "reindex
". -
Method Summary
Modifier and TypeMethodDescriptionfinal Conflicts
API name:conflicts
final Destination
dest()
Required - API name:dest
final Long
maxDocs()
API name:max_docs
static ReindexRequest
final Boolean
refresh()
Should the affected indexes be refreshed?final Float
The throttle to set on this request in sub-requests per second.final Boolean
API name:require_alias
final Script
script()
API name:script
final Time
scroll()
Control how long to keep the search context alivevoid
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final Long
size()
API name:size
final Slices
slices()
The number of slices this task should be divided into.final Source
source()
Required - API name:source
final Time
timeout()
Time each individual bulk request should wait for shards that are unavailable.final WaitForActiveShards
Sets the number of shard copies that must be active before proceeding with the reindex operation.final Boolean
Should the request should block until the reindex is complete.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forReindexRequest
-
_ENDPOINT
Endpoint "reindex
".
-
-
Method Details
-
of
-
conflicts
API name:conflicts
-
dest
Required - API name:dest
-
maxDocs
API name:max_docs
-
refresh
Should the affected indexes be refreshed?API name:
refresh
-
requestsPerSecond
The throttle to set on this request in sub-requests per second. -1 means no throttle.API name:
requests_per_second
-
requireAlias
API name:require_alias
-
script
API name:script
-
scroll
Control how long to keep the search context aliveAPI name:
scroll
-
size
API name:size
-
slices
The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set toauto
.API name:
slices
-
source
Required - API name:source
-
timeout
Time each individual bulk request should wait for shards that are unavailable.API name:
timeout
-
waitForActiveShards
Sets the number of shard copies that must be active before proceeding with the reindex operation. Defaults to 1, meaning the primary shard only. Set toall
for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)API name:
wait_for_active_shards
-
waitForCompletion
Should the request should block until the reindex is complete.API name:
wait_for_completion
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupReindexRequestDeserializer
protected static void setupReindexRequestDeserializer(ObjectDeserializer<ReindexRequest.Builder> op)
-