Skip to content

Commit b509b82

Browse files
1pkgAnaethelion
authored andcommitted
esutil: Add failure_store key to bulk response item (#948)
1 parent d7ae96e commit b509b82

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

esutil/bulk_indexer.go

Lines changed: 8 additions & 7 deletions
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)