Skip to content

Commit 42b0e5c

Browse files
Arquiveiolivere
Arquivei
authored andcommitted
Add missing fields on BulkResponseItem (#520)
Add the missing `result` and `forced_refresh` fields to `BulkResponseItem`.
1 parent cec324c commit 42b0e5c

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

bulk.go

+9-7
Original file line numberDiff line numberDiff line change
@@ -300,13 +300,15 @@ type BulkResponse struct {
300300

301301
// BulkResponseItem is the result of a single bulk request.
302302
type BulkResponseItem struct {
303-
Index string `json:"_index,omitempty"`
304-
Type string `json:"_type,omitempty"`
305-
Id string `json:"_id,omitempty"`
306-
Version int64 `json:"_version,omitempty"`
307-
Status int `json:"status,omitempty"`
308-
Found bool `json:"found,omitempty"`
309-
Error *ErrorDetails `json:"error,omitempty"`
303+
Index string `json:"_index,omitempty"`
304+
Type string `json:"_type,omitempty"`
305+
Id string `json:"_id,omitempty"`
306+
Version int64 `json:"_version,omitempty"`
307+
Status int `json:"status,omitempty"`
308+
Result string `json:"result,omitempty"`
309+
ForcedRefresh bool `json:"forced_refresh,omitempty"`
310+
Found bool `json:"found,omitempty"`
311+
Error *ErrorDetails `json:"error,omitempty"`
310312
}
311313

312314
// Indexed returns all bulk request results of "index" actions.

0 commit comments

Comments
 (0)