Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
twilson63 opened this issue Jan 18, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@twilson63
Copy link
Contributor

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}] }
@twilson63 twilson63 self-assigned this Jan 18, 2022
@twilson63 twilson63 added the bug Something isn't working label Jan 18, 2022
twilson63 added a commit that referenced this issue Jan 19, 2022
fix: return ok:true for each item in bulk results #8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant