diff --git a/_api-reference/document-apis/index-document.md b/_api-reference/document-apis/index-document.md index 5d441224..05cb787e 100644 --- a/_api-reference/document-apis/index-document.md +++ b/_api-reference/document-apis/index-document.md @@ -91,6 +91,6 @@ result | The result of the index operation. _shards | Detailed information about the cluster's shards. total | The total number of shards. successful | The number of shards OpenSearch successfully added the document to. -failed | The number of shards OpenSearch failed to added the document to. +failed | The number of shards OpenSearch failed to add the document to. _seq_no | The sequence number assigned when the document was indexed. _primary_term | The primary term assigned when the document was indexed. diff --git a/_api-reference/document-apis/update-document.md b/_api-reference/document-apis/update-document.md index 75241f7b..7354277e 100644 --- a/_api-reference/document-apis/update-document.md +++ b/_api-reference/document-apis/update-document.md @@ -50,7 +50,7 @@ Parameter | Type | Description | Required :--- | :--- | :--- | :--- <index> | String | Name of the index. | Yes <_id> | String | The ID of the document to update. | Yes -if_seq_no | Integer | Only perform the delete operation if the document's version number matches the specified number. | No +if_seq_no | Integer | Only perform the update operation if the document has the specified sequence number. | No if_primary_term | Integer | Perform the update operation if the document has the specified primary term. | No lang | String | Language of the script. Default is `painless`. | No require_alias | Boolean | Specifies whether the destination must be an index alias. Default is false. | No @@ -143,10 +143,10 @@ 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. +_result | The result of the update operation. _shards | Detailed information about the cluster's shards. total | The total number of shards. -successful | The number of shards OpenSearch successfully deleted the document from. -failed | The number of shards OpenSearch failed to delete the document from. +successful | The number of shards OpenSearch successfully updated the document in. +failed | The number of shards OpenSearch failed to update the document in. _seq_no | The sequence number assigned when the document was indexed. _primary_term | The primary term assigned when the document was indexed.