Update document
Script example
{
"script" : {
}
}
URL parameters
{
"doc": {
"first_name": "Thomas",
"last_name": "Wayne"
}
}
Response
{
"_index": "sample-index1",
"_version": 3,
"result": "updated",
"_shards": {
"total": 2,
"successful": 2,
"failed": 0
},
"_seq_no": 4,
"_primary_term": 17
}
Field | Description |
---|
_index | The name of the index. |
_id | The document’s ID. |
_version | The document’s version. |
_result | The result of the delete operation. |
_shards | Detailed information about the cluster’s shards. |
total | The total number of shards. |
successful | The number of shards OpenSearch succssfully deleted the document from. |
failed | The number of shards OpenSearch failed to delete the document from. |
_seq_no | The sequence number assigned when the document was indexed. |
_primary_term | The primary term assigned when the document was indexed. |