pub struct BulkItem {
pub action: BulkAction,
pub index: Option<String>,
pub id: Option<String>,
pub routing: Option<String>,
pub concurrency_control: bool,
pub source: Option<Vec<u8>>,
}Expand description
One parsed bulk operation: its action, the optional explicit _index/_id/
routing from the action line, and the source document (if any).
Fields§
§action: BulkActionThe operation verb.
index: Option<String>The explicit _index from the action line, if any (else the URL default).
id: Option<String>The explicit _id from the action line, if any.
routing: Option<String>The explicit routing from the action line, if any.
concurrency_control: boolWhether the action line carries an optimistic-concurrency precondition
(if_seq_no/if_primary_term/version/version_type). The async
fan-out path rejects such items: the precondition is evaluated against the
live version, which does not exist at enqueue time (docs/04 §9).
source: Option<Vec<u8>>The source document as raw bytes (for index/create/update; None for
delete). Kept verbatim, not parsed into a Value, so the per-item
transform can scan and splice it without materializing a tree (ADR-014).