Struct elasticsearch::BulkDeleteOperation
source · pub struct BulkDeleteOperation<B> { /* private fields */ }
Expand description
Bulk delete operation
The bulk delete operation is generic over B
to allow delete operations to be specified
in a collection of operations over B
, even though the source of any delete operation will
always be None
Implementations
sourceimpl<B> BulkDeleteOperation<B>
impl<B> BulkDeleteOperation<B>
sourcepub fn new<S>(id: S) -> Selfwhere
S: Into<String>,
pub fn new<S>(id: S) -> Selfwhere
S: Into<String>,
Creates a new instance of BulkDeleteOperation
sourcepub fn index<S>(self, index: S) -> Selfwhere
S: Into<String>,
pub fn index<S>(self, index: S) -> Selfwhere
S: Into<String>,
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 routing<S>(self, routing: S) -> Selfwhere
S: Into<String>,
pub fn routing<S>(self, routing: S) -> Selfwhere
S: Into<String>,
Target the specified primary shard
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