[][src]Struct elasticsearch::BulkUpdateOperation

pub struct BulkUpdateOperation<B> { /* fields omitted */ }

Bulk update operation

Implementations

impl<B> BulkUpdateOperation<B> where
    B: Serialize
[src]

pub fn new<S>(id: S, source: B) -> Self where
    S: Into<String>, 
[src]

Creates a new instance of BulkUpdateOperation

pub fn index<S>(self, index: S) -> Self where
    S: Into<String>, 
[src]

specify the name of the index to perform the bulk update operation against.

Each bulk operation can specify an index to operate against. If all bulk operations in one Bulk API call will operate against the same index, specify the index on Bulk using BulkParts::Index, and omit specifying the index on each bulk operation.

pub fn routing<S>(self, routing: S) -> Self where
    S: Into<String>, 
[src]

Target the specified primary shard

pub fn if_seq_no(self, seq_no: i64) -> Self[src]

specify a sequence number to use for optimistic concurrency control

pub fn if_primary_term(self, primary_term: i64) -> Self[src]

specify a primary term to use for optimistic concurrency control

pub fn version(self, version: i64) -> Self[src]

specify a version number to use for optimistic concurrency control

pub fn version_type(self, version_type: VersionType) -> Self[src]

The type of versioning used when a version is specified

pub fn retry_on_conflict(self, retry_on_conflict: i32) -> Self[src]

specify how many times an update should be retried in the case of a version conflict

pub fn source<S>(self, source: S) -> Self where
    S: Into<SourceFilter>, 
[src]

specify how the _source field is returned for the update operation.

This can also be specified as part of the update action source payload instead.

Trait Implementations

impl<B> From<BulkUpdateOperation<B>> for BulkOperation<B>[src]

Auto Trait Implementations

impl<B> RefUnwindSafe for BulkUpdateOperation<B> where
    B: RefUnwindSafe

impl<B> Send for BulkUpdateOperation<B> where
    B: Send

impl<B> Sync for BulkUpdateOperation<B> where
    B: Sync

impl<B> Unpin for BulkUpdateOperation<B> where
    B: Unpin

impl<B> UnwindSafe for BulkUpdateOperation<B> where
    B: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.