Class ReindexOnServerRequest
A request to Reindex API
Inheritance
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class ReindexOnServerRequest : PlainRequestBase<ReindexOnServerRequestParameters>, IReindexOnServerRequest, IRequest<ReindexOnServerRequestParameters>, IRequest
Properties
| Edit this page View SourceConflicts
Determine what to do in the event of version conflicts. Defaults to Abort
Declaration
public Conflicts? Conflicts { get; set; }
Property Value
Type | Description |
---|---|
Conflicts? |
Destination
The destination for the reindex operation.
Declaration
public IReindexDestination Destination { get; set; }
Property Value
Type | Description |
---|---|
IReindexDestination |
Remarks
Reindex does not attempt to set up the destination index. It does not copy the settings of the source index. You should set up the destination index beforehand
MaximumDocuments
Limit the number of processed documents
Declaration
public long? MaximumDocuments { get; set; }
Property Value
Type | Description |
---|---|
long? |
Refresh
If true
, the request refreshes affected shards to make this operation visible to search.
Declaration
public bool? Refresh { get; set; }
Property Value
Type | Description |
---|---|
bool? |
RequestsPerSecond
The throttle for this request in sub-requests per second. Defaults to no throttle.
Declaration
public long? RequestsPerSecond { get; set; }
Property Value
Type | Description |
---|---|
long? |
Script
A script that can modify documents from source, including metadata, before reindexing
Declaration
public IScript Script { get; set; }
Property Value
Type | Description |
---|---|
IScript |
Scroll
Specifies how long a consistent view of the index should be maintained for scrolled search.
Declaration
public Time Scroll { get; set; }
Property Value
Type | Description |
---|---|
Time |
Self
Declaration
protected IReindexOnServerRequest Self { get; }
Property Value
Type | Description |
---|---|
IReindexOnServerRequest |
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 to auto
.
Declaration
public Slices Slices { get; set; }
Property Value
Type | Description |
---|---|
Slices |
Source
The source for the reindex operation
Declaration
public IReindexSource Source { get; set; }
Property Value
Type | Description |
---|---|
IReindexSource |
Timeout
Period each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards.
Declaration
public Time Timeout { get; set; }
Property Value
Type | Description |
---|---|
Time |
WaitForActiveShards
The number of shard copies that must be active before proceeding with the operation. Set to all
or any positive integer up to the total
number of shards in the index (number_of_replicas+1
).
Declaration
public string WaitForActiveShards { get; set; }
Property Value
Type | Description |
---|---|
string |
WaitForCompletion
If true
, the request blocks until the operation is complete.
Declaration
public bool? WaitForCompletion { get; set; }
Property Value
Type | Description |
---|---|
bool? |