Type Definition elastic::client::requests::index_open::IndexOpenRequestBuilder [] [src]

type IndexOpenRequestBuilder<TSender> = RequestBuilder<TSender, IndexOpenRequestInner>;

An open index request builder that can be configured before sending.

Call Client.index_open to get an IndexOpenRequestBuilder. The send method will either send the request synchronously or asynchronously, depending on the Client it was opend from.

Methods

impl IndexOpenRequestBuilder<SyncSender>
[src]

[src]

Send an IndexOpenRequestBuilder synchronously using a SyncClient.

This will block the current thread until a response arrives and is deserialised.

Examples

Open an index called myindex:

let response = client.index_open(index("myindex")).send()?;

assert!(response.acknowledged());

impl IndexOpenRequestBuilder<AsyncSender>
[src]

[src]

Send an IndexOpenRequestBuilder asynchronously using an AsyncClient.

This will return a future that will resolve to the deserialised command response.

Examples

Open an index called myindex:

let future = client.index_open(index("myindex")).send();

future.and_then(|response| {
    assert!(response.acknowledged());

    Ok(())
});