Class ReindexRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.core.ReindexRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<ReindexRequest.Builder,ReindexRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class ReindexRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<ReindexRequest.Builder,ReindexRequest>
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.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._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 TypeMethodDescriptionprotected voidapplyQueryParameters(Map<String, String> params) static ReindexRequest.Builderbuilder()final ConflictsAPI name:conflictsfinal Destinationdest()Required - API name:destbooleaninthashCode()final IntegermaxDocs()The maximum number of documents to reindex.static ReindexRequestfinal Refreshrefresh()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 BooleanAPI name:require_aliasfinal Scriptscript()API name:scriptfinal 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 Integersize()API name:sizefinal Slicesslices()The number of slices this task should be divided into.final Sourcesource()Required - API name:sourcefinal Timetimeout()Period each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.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 org.opensearch.client.opensearch._types.RequestBase
errorTrace, humanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forReindexRequest -
_ENDPOINT
Endpoint "reindex".
-
-
Method Details
-
of
-
conflicts
API name:conflicts -
dest
Required - 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
API name:require_alias -
script
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 - 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
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ReindexRequest.Builder,ReindexRequest> - Returns:
- a new builder instance.
-
builder
-
setupReindexRequestDeserializer
protected static void setupReindexRequestDeserializer(ObjectDeserializer<ReindexRequest.Builder> op) -
applyQueryParameters
- Overrides:
applyQueryParametersin classRequestBase
-
hashCode
public int hashCode() -
equals
-