Skip to content

Commit 419ddf2

Browse files
Anaethelion1pkg
andauthored
esutil: Add failure_store key to bulk response item (#948) (#950)
Co-authored-by: Kostiantyn Masliuk <1pkg@protonmail.com>
1 parent d7ae96e commit 419ddf2

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

esutil/bulk_indexer.go

+8-7
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,14 @@ type BulkIndexerResponse struct {
223223

224224
// BulkIndexerResponseItem represents the Elasticsearch response item.
225225
type BulkIndexerResponseItem struct {
226-
Index string `json:"_index"`
227-
DocumentID string `json:"_id"`
228-
Version int64 `json:"_version"`
229-
Result string `json:"result"`
230-
Status int `json:"status"`
231-
SeqNo int64 `json:"_seq_no"`
232-
PrimTerm int64 `json:"_primary_term"`
226+
Index string `json:"_index"`
227+
DocumentID string `json:"_id"`
228+
Version int64 `json:"_version"`
229+
Result string `json:"result"`
230+
Status int `json:"status"`
231+
SeqNo int64 `json:"_seq_no"`
232+
PrimTerm int64 `json:"_primary_term"`
233+
FailureStore string `json:"failure_store,omitempty"`
233234

234235
Shards struct {
235236
Total int `json:"total"`

0 commit comments

Comments
 (0)