Fixed typos

This commit is contained in:
keithhc2 2021-08-30 11:32:24 -07:00
parent 17f91f09a3
commit d941cb6ad7
4 changed files with 57 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

@ -0,0 +1,50 @@
---
layout: default
title: Reindex
parent: Document APIs
grand_parent: REST API reference
nav_order: 60
---
# Reindex
Introduced 1.0
{: .label .label-purple}
You can use the `reindex` operation to copy every document or a subset of documents in your index into another index.
## Example
```json
```
## Path and HTTP methods
```
```
## URL parameters
Parameter | Type | Description | Required
:--- | :--- | :--- | :---
## Request body
Your request body must contain the information you want to index.
```json
```
## Response
```json
```
## Response body fields
Field | Description
:--- | :---

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