[−][src]Struct elasticsearch::BulkIndexOperation
Bulk index operation
Implementations
impl<B> BulkIndexOperation<B>
[src]
pub fn new(source: B) -> Self
[src]
Creates a new instance of BulkIndexOperation
pub fn id<S>(mut self: Self, id: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
Specify the id for the document
If an id is not specified, Elasticsearch will generate an id for the document which will be returned in the response.
pub fn index<S>(mut self: Self, index: S) -> Self where
S: Into<String>,
[src]
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.
pub fn pipeline<S>(mut self: Self, pipeline: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
The ID of the pipeline to use to preprocess incoming documents
pub fn routing<S>(mut self: Self, routing: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
Target the specified primary shard
pub fn if_seq_no(mut self: Self, seq_no: i64) -> Self
[src]
specify a sequence number to use for optimistic concurrency control
pub fn if_primary_term(mut self: Self, primary_term: i64) -> Self
[src]
specify a primary term to use for optimistic concurrency control
pub fn version(mut self: Self, version: i64) -> Self
[src]
specify a version number to use for optimistic concurrency control
pub fn version_type(mut self: Self, version_type: VersionType) -> Self
[src]
The type of versioning used when a version is specified
Trait Implementations
impl<B> From<BulkIndexOperation<B>> for BulkOperation<B>
[src]
fn from(b: BulkIndexOperation<B>) -> Self
[src]
Auto Trait Implementations
impl<B> RefUnwindSafe for BulkIndexOperation<B> where
B: RefUnwindSafe,
[src]
B: RefUnwindSafe,
impl<B> Send for BulkIndexOperation<B> where
B: Send,
[src]
B: Send,
impl<B> Sync for BulkIndexOperation<B> where
B: Sync,
[src]
B: Sync,
impl<B> Unpin for BulkIndexOperation<B> where
B: Unpin,
[src]
B: Unpin,
impl<B> UnwindSafe for BulkIndexOperation<B> where
B: UnwindSafe,
[src]
B: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,