github.com/opensearch-project/opensearch-go/v2@v2.3.0/opensearchutil/testdata/bulk_response_2.json (about)

     1  {
     2    "took": 30,
     3    "errors": true,
     4    "items": [
     5      {
     6        "index": {
     7          "_index": "test",
     8          "_id": "1",
     9          "_version": 1,
    10          "result": "created",
    11          "_shards": { "total": 1, "successful": 1, "failed": 0 },
    12          "_seq_no": 0,
    13          "_primary_term": 1,
    14          "status": 201
    15        }
    16      },
    17      {
    18        "create": {
    19          "_index": "test",
    20          "_id": "1",
    21          "status": 409,
    22          "error": {
    23            "type": "version_conflict_engine_exception",
    24            "reason": "[1]: version conflict, document already exists (current version [1])",
    25            "index_uuid": "eZMQ7DUzT56RLaQcAjOlxg",
    26            "index": "test-bulk-integration",
    27            "shard": "0"
    28          }
    29        }
    30      },
    31      {
    32        "delete": {
    33          "_index": "test",
    34          "_id": "2",
    35          "_version": 1,
    36          "result": "not_found",
    37          "_shards": { "total": 1, "successful": 1, "failed": 0 },
    38          "_seq_no": 3,
    39          "_primary_term": 1,
    40          "status": 404
    41        }
    42      },
    43      {
    44        "update": {
    45          "_index": "test",
    46          "_id": "3",
    47          "_version": 2,
    48          "result": "updated",
    49          "_shards": { "total": 1, "successful": 1, "failed": 0 },
    50          "_seq_no": 4,
    51          "_primary_term": 1,
    52          "status": 200
    53        }
    54      }
    55    ]
    56  }