Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions src/operations/bulk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,22 @@ pub struct ActionResultInner {
#[serde(rename = "_type")]
pub doc_type: String,
#[serde(rename = "_version")]
pub version: u64,
pub version: Option<u64>,
pub status: u64,
#[serde(rename = "_shards")]
pub shards: ShardCountResult,
pub shards: Option<ShardCountResult>,
pub found: Option<bool>,
pub error: Option<BulkError>,
}

#[derive(Debug, serde::Deserialize)]
pub struct BulkError {
#[serde(rename = "type")]
pub kind: String,
pub reason: String,
pub index_uuid: Option<String>,
pub shard: Option<String>,
pub index: Option<String>,
}

/// The result of a bulk operation
Expand Down