From e20f0ef551fa2f707267fe88153b14c1bf212d04 Mon Sep 17 00:00:00 2001 From: Kostiantyn Masliuk <1pkg@protonmail.com> Date: Thu, 30 Jan 2025 16:03:07 -0800 Subject: [PATCH] esutil: add failure_store key to bulk response item --- esutil/bulk_indexer.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/esutil/bulk_indexer.go b/esutil/bulk_indexer.go index 64812726fa..0da910e6af 100644 --- a/esutil/bulk_indexer.go +++ b/esutil/bulk_indexer.go @@ -223,13 +223,14 @@ type BulkIndexerResponse struct { // BulkIndexerResponseItem represents the Elasticsearch response item. type BulkIndexerResponseItem struct { - Index string `json:"_index"` - DocumentID string `json:"_id"` - Version int64 `json:"_version"` - Result string `json:"result"` - Status int `json:"status"` - SeqNo int64 `json:"_seq_no"` - PrimTerm int64 `json:"_primary_term"` + Index string `json:"_index"` + DocumentID string `json:"_id"` + Version int64 `json:"_version"` + Result string `json:"result"` + Status int `json:"status"` + SeqNo int64 `json:"_seq_no"` + PrimTerm int64 `json:"_primary_term"` + FailureStore string `json:"failure_store,omitempty"` Shards struct { Total int `json:"total"`