Skip to content

bug: bulk command should return { ok: true, results: [{ok: true, id: ...}, ...] } #8

@twilson63

Description

@twilson63

Currently when loading bulk items the results return match the following:

{
  "ok": true,
  "results": [
    {
      "index": {
        "_index": "app-movies-ckutqvg7y002q07l7h2qd5gmthyper63default",
        "_type": "_doc",
        "_id": "1",
        "_version": 2,
        "result": "updated",
        "_shards": {
          "total": 2,
          "successful": 2,
          "failed": 0
        },
        "_seq_no": 1,
        "_primary_term": 1,
        "status": 200
      }
    },
    {
      "index": {
        "_index": "app-movies-ckutqvg7y002q07l7h2qd5gmthyper63default",
        "_type": "_doc",
        "_id": "2",
        "_version": 2,
        "result": "updated",
        "_shards": {
          "total": 2,
          "successful": 2,
          "failed": 0
        },
        "_seq_no": 1,
        "_primary_term": 1,
        "status": 200
      }
    }
  ]
}

And it should match the following:

{ ok: true, results: [{"id": "1", "ok": true}, {"id": "2", "ok": true}] }

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions