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 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 JsonpDeserializer<ReindexRequest>Json deserializer forReindexRequeststatic final Endpoint<ReindexRequest,ReindexResponse, ErrorResponse> Endpoint "reindex". -
Method Summary
Modifier and TypeMethodDescriptionfinal ConflictsSet to proceed to continue reindexing even if there are conflicts.final Destinationdest()Required - The destination you are copying to.final LongmaxDocs()The maximum number of documents to reindex.static ReindexRequestfinal Booleanrefresh()Iftrue, the request refreshes affected shards to make this operation visible to search.final FloatThe throttle for this request in sub-requests per second.final BooleanIftrue, the destination must be an index alias.final Scriptscript()The script to run to update the document source or metadata when reindexing.final Timescroll()Specifies how long a consistent view of the index should be maintained for scrolled search.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Longsize()API name:sizefinal Slicesslices()The number of slices this task should be divided into.final Sourcesource()Required - The source you are copying from.final Timetimeout()Period each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards.final WaitForActiveShardsThe number of shard copies that must be active before proceeding with the operation.final BooleanIftrue, 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 toallor 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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupReindexRequestDeserializer
protected static void setupReindexRequestDeserializer(ObjectDeserializer<ReindexRequest.Builder> op)
-