parent
36694537f6
commit
f464d01041
|
@ -28,7 +28,7 @@ POST sample-index1/_delete_by_query
|
|||
## Path and HTTP methods
|
||||
|
||||
```
|
||||
POST <index>/_delete_by_query
|
||||
POST <target>/_delete_by_query
|
||||
```
|
||||
|
||||
## URL parameters
|
||||
|
|
|
@ -19,14 +19,14 @@ DELETE /sample-index1/_doc/1
|
|||
## Path and HTTP methods
|
||||
|
||||
```
|
||||
DELETE /<index>/_doc/<_id>
|
||||
DELETE /<index-name>/_doc/<_id>
|
||||
```
|
||||
|
||||
## URL parameters
|
||||
|
||||
Parameter | Type | Description | Required
|
||||
:--- | :--- | :--- | :---
|
||||
<index> | String | The index to delete from. | Yes
|
||||
<index-name> | String | The index to delete from. | Yes
|
||||
<_id> | 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_primary_term | Integer | Only perform the delete operation if the document has the specified primary term. | No
|
||||
|
|
|
@ -1,50 +0,0 @@
|
|||
---
|
||||
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
|
||||
:--- | :---
|
|
@ -17,7 +17,7 @@ POST /sample-index1/_update/1
|
|||
{
|
||||
"doc": {
|
||||
"first_name" : "Bruce",
|
||||
"last_name" : "Wayne"
|
||||
"last_name" : "Wayne",
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -28,7 +28,7 @@ POST /sample-index1/_update/1
|
|||
POST /test-index1/_update/1
|
||||
{
|
||||
"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
|
||||
|
||||
```
|
||||
POST /<index>/_update/<_id>
|
||||
POST /<index-name>/_update/<_id>
|
||||
```
|
||||
|
||||
## URL parameters
|
||||
|
||||
Parameter | Type | Description | Required
|
||||
:--- | :--- | :--- | :---
|
||||
<index> | String | Name of the index. | Yes
|
||||
<index-name> | 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_primary_term | Integer | Perform the update operation if the document has the specified primary term. | No
|
||||
|
|
Loading…
Reference in New Issue