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
Set to proceed to continue reindexing even if there are conflicts.final Destination
dest()
Required - The destination you are copying to.final Long
maxDocs()
The maximum number of documents to reindex.static ReindexRequest
final Boolean
refresh()
Iftrue
, the request refreshes affected shards to make this operation visible to search.final Float
The throttle for this request in sub-requests per second.final Boolean
Iftrue
, the destination must be an index alias.final Script
script()
The script to run to update the document source or metadata when reindexing.final Time
scroll()
Specifies how long a consistent view of the index should be maintained for scrolled search.void
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 - The source you are copying from.final Time
timeout()
Period each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards.final WaitForActiveShards
The number of shard copies that must be active before proceeding with the operation.final Boolean
Iftrue
, the request blocks until the operation 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
Set to proceed to continue reindexing even if there are conflicts.API name:
conflicts
-
dest
Required - The destination you are copying to.API name:
dest
-
maxDocs
The maximum number of documents to reindex.API name:
max_docs
-
refresh
Iftrue
, the request refreshes affected shards to make this operation visible to search.API name:
refresh
-
requestsPerSecond
The throttle for this request in sub-requests per second. Defaults to no throttle.API name:
requests_per_second
-
requireAlias
Iftrue
, the destination must be an index alias.API name:
require_alias
-
script
The script to run to update the document source or metadata when reindexing.API name:
script
-
scroll
Specifies how long a consistent view of the index should be maintained for scrolled search.API name:
scroll
-
size
API name:size
-
slices
The number of slices this task should be divided into. Defaults to 1 slice, meaning the task isn’t sliced into subtasks.API name:
slices
-
source
Required - The source you are copying from.API name:
source
-
timeout
Period each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards.API name:
timeout
-
waitForActiveShards
The number of shard copies that must be active before proceeding with the operation. Set toall
or any positive integer up to the total number of shards in the index (number_of_replicas+1
).API name:
wait_for_active_shards
-
waitForCompletion
Iftrue
, the request blocks until the operation 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)
-