Class ReindexRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<ReindexRequest.Builder>
co.elastic.clients.elasticsearch.core.ReindexRequest.Builder
- All Implemented Interfaces:
WithJson<ReindexRequest.Builder>,ObjectBuilder<ReindexRequest>
- Enclosing class:
- ReindexRequest
public static class ReindexRequest.Builder
extends RequestBase.AbstractBuilder<ReindexRequest.Builder>
implements ObjectBuilder<ReindexRequest>
Builder for
ReindexRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aReindexRequest.final ReindexRequest.BuilderSet to proceed to continue reindexing even if there are conflicts.final ReindexRequest.Builderdest(Destination value) Required - The destination you are copying to.final ReindexRequest.BuilderRequired - The destination you are copying to.final ReindexRequest.BuilderThe maximum number of documents to reindex.final ReindexRequest.BuilderIftrue, the request refreshes affected shards to make this operation visible to search.final ReindexRequest.BuilderrequestsPerSecond(Float value) The throttle for this request in sub-requests per second.final ReindexRequest.BuilderrequireAlias(Boolean value) Iftrue, the destination must be an index alias.final ReindexRequest.BuilderThe script to run to update the document source or metadata when reindexing.final ReindexRequest.BuilderThe script to run to update the document source or metadata when reindexing.final ReindexRequest.BuilderSpecifies how long a consistent view of the index should be maintained for scrolled search.final ReindexRequest.BuilderSpecifies how long a consistent view of the index should be maintained for scrolled search.protected ReindexRequest.Builderself()final ReindexRequest.BuilderAPI name:sizefinal ReindexRequest.BuilderThe number of slices this task should be divided into.final ReindexRequest.BuilderThe number of slices this task should be divided into.final ReindexRequest.BuilderRequired - The source you are copying from.final ReindexRequest.BuilderRequired - The source you are copying from.final ReindexRequest.BuilderPeriod each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards.final ReindexRequest.BuilderPeriod each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards.final ReindexRequest.BuilderThe number of shard copies that must be active before proceeding with the operation.final ReindexRequest.BuilderThe number of shard copies that must be active before proceeding with the operation.final ReindexRequest.BuilderwaitForCompletion(Boolean value) Iftrue, the request blocks until the operation is complete.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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 -
dest
public final ReindexRequest.Builder dest(Function<Destination.Builder, ObjectBuilder<Destination>> fn) 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 -
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 -
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 -
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 -
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 -
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 -
waitForActiveShards
public final ReindexRequest.Builder waitForActiveShards(Function<WaitForActiveShards.Builder, ObjectBuilder<WaitForActiveShards>> fn) 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 -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<ReindexRequest.Builder>
-
build
Builds aReindexRequest.- Specified by:
buildin interfaceObjectBuilder<ReindexRequest>- Throws:
NullPointerException- if some of the required fields are null.
-