pub struct BulkUpdateOperation<B> { /* private fields */ }
Expand description
Bulk update operation
Implementations§
Source§impl<B> BulkUpdateOperation<B>where
B: Serialize,
impl<B> BulkUpdateOperation<B>where
B: Serialize,
Sourcepub fn new<S>(id: S, source: B) -> Self
pub fn new<S>(id: S, source: B) -> Self
Creates a new instance of BulkUpdateOperation
Sourcepub fn index<S>(self, index: S) -> Self
pub fn index<S>(self, index: S) -> Self
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.
Sourcepub fn if_seq_no(self, seq_no: i64) -> Self
pub fn if_seq_no(self, seq_no: i64) -> Self
specify a sequence number to use for optimistic concurrency control
Sourcepub fn if_primary_term(self, primary_term: i64) -> Self
pub fn if_primary_term(self, primary_term: i64) -> Self
specify a primary term to use for optimistic concurrency control
Sourcepub fn version(self, version: i64) -> Self
pub fn version(self, version: i64) -> Self
specify a version number to use for optimistic concurrency control
Sourcepub fn version_type(self, version_type: VersionType) -> Self
pub fn version_type(self, version_type: VersionType) -> Self
The type of versioning used when a version is specified
Sourcepub fn retry_on_conflict(self, retry_on_conflict: i32) -> Self
pub fn retry_on_conflict(self, retry_on_conflict: i32) -> Self
specify how many times an update should be retried in the case of a version conflict
Sourcepub fn source<S>(self, source: S) -> Selfwhere
S: Into<SourceFilter>,
pub fn source<S>(self, source: S) -> Selfwhere
S: Into<SourceFilter>,
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.