Fix incorrect documentation in index-document.md and update-document.md (#4420)

Signed-off-by: Jacob Glickman <jhg023@bucknell.edu>
This commit is contained in:
Jacob G 2023-06-29 07:15:29 -07:00 committed by GitHub
parent 81836baabe
commit 4984cfe724
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -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.

View File

@ -50,7 +50,7 @@ Parameter | Type | Description | Required
:--- | :--- | :--- | :---
&lt;index&gt; | String | Name of the index. | Yes
&lt;_id&gt; | 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.