From 4984cfe7244c69728c545848447ab088af2a4c4a Mon Sep 17 00:00:00 2001 From: Jacob G Date: Thu, 29 Jun 2023 07:15:29 -0700 Subject: [PATCH] Fix incorrect documentation in index-document.md and update-document.md (#4420) Signed-off-by: Jacob Glickman --- _api-reference/document-apis/index-document.md | 2 +- _api-reference/document-apis/update-document.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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.