Struct elasticsearch::Reindex[][src]

pub struct Reindex<'a, 'b, B> { /* fields omitted */ }
Expand description

Builder for the Reindex API

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.

Implementations

Creates a new instance of Reindex

The body for the API call

Include the stack trace of returned errors.

A comma-separated list of filters used to reduce the response.

Adds a HTTP header

Return human readable values for statistics.

Maximum number of documents to process (default: all documents)

Pretty format the returned JSON response.

Should the affected indexes be refreshed?

Sets a request timeout for this API call.

The timeout is applied from when the request starts connecting until the response body has finished.

The throttle to set on this request in sub-requests per second. -1 means no throttle.

Control how long to keep the search context alive

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.

The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.

Time each individual bulk request should wait for shards that are unavailable.

Sets the number of shard copies that must be active before proceeding with the reindex operation. Defaults to 1, meaning the primary shard only. Set to all for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)

Should the request should block until the reindex is complete.

Creates an asynchronous call to the Reindex API that can be awaited

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.