Skip to content

Commit

Permalink
esutil: Add failure_store key to bulk response item (#948) (#950)
Browse files Browse the repository at this point in the history
Co-authored-by: Kostiantyn Masliuk <[email protected]>
  • Loading branch information
Anaethelion and 1pkg authored Feb 6, 2025
1 parent d7ae96e commit 419ddf2
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions esutil/bulk_indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 419ddf2

Please sign in to comment.