Fixed typos

This commit is contained in:
keithhc2 2021-08-30 11:47:02 -07:00
parent f464d01041
commit 449177c07e
3 changed files with 7 additions and 7 deletions

View File

@ -28,7 +28,7 @@ POST sample-index1/_delete_by_query
## Path and HTTP methods ## Path and HTTP methods
``` ```
POST <target>/_delete_by_query POST <index>/_delete_by_query
``` ```
## URL parameters ## URL parameters

View File

@ -19,14 +19,14 @@ DELETE /sample-index1/_doc/1
## Path and HTTP methods ## Path and HTTP methods
``` ```
DELETE /<index-name>/_doc/<_id> DELETE /<index>/_doc/<_id>
``` ```
## URL parameters ## URL parameters
Parameter | Type | Description | Required Parameter | Type | Description | Required
:--- | :--- | :--- | :--- :--- | :--- | :--- | :---
&lt;index-name&gt; | String | The index to delete from. | Yes &lt;index&gt; | String | The index to delete from. | Yes
&lt;_id&gt; | String | The ID of the document to delete. | Yes &lt;_id&gt; | String | The ID of the document to delete. | 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 delete operation if the document's version number matches the specified number. | No
if_primary_term | Integer | Only perform the delete operation if the document has the specified primary term. | No if_primary_term | Integer | Only perform the delete operation if the document has the specified primary term. | No

View File

@ -17,7 +17,7 @@ POST /sample-index1/_update/1
{ {
"doc": { "doc": {
"first_name" : "Bruce", "first_name" : "Bruce",
"last_name" : "Wayne", "last_name" : "Wayne"
} }
} }
``` ```
@ -28,7 +28,7 @@ POST /sample-index1/_update/1
POST /test-index1/_update/1 POST /test-index1/_update/1
{ {
"script" : { "script" : {
"source": "ctx._source.secret_identity = \"Batman\"", "source": "ctx._source.secret_identity = \"Batman\""
} }
} }
``` ```
@ -36,14 +36,14 @@ POST /test-index1/_update/1
## Path and HTTP methods ## Path and HTTP methods
``` ```
POST /<index-name>/_update/<_id> POST /<index>/_update/<_id>
``` ```
## URL parameters ## URL parameters
Parameter | Type | Description | Required Parameter | Type | Description | Required
:--- | :--- | :--- | :--- :--- | :--- | :--- | :---
&lt;index-name&gt; | String | Name of the index. | Yes &lt;index&gt; | String | Name of the index. | Yes
&lt;_id&gt; | String | The ID of the document to update. | 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 delete operation if the document's version number matches the specified number. | No
if_primary_term | Integer | Perform the update operation if the document has the specified primary term. | No if_primary_term | Integer | Perform the update operation if the document has the specified primary term. | No