diff --git a/index.html b/index.html index 31d33a5..c88ab11 100644 --- a/index.html +++ b/index.html @@ -582,29 +582,50 @@

Indices status and management

GET /my_index_name/_upgrade?pretty&human
- - - - - - - - - - - - - - - - - - - - +
+

Reindex API

+

Simple Reindex Operation

+
POST /_reindex
+{
+  "source": {
+    "index": "test-index"
+  },
+  "dest": {
+    "index": "test-index-new"
+  }
+}
+
POST /_reindex
+{
+  "source": {
+    "index": "test-index"
+  },
+  "dest": {
+    "index": "test-index-new"
+  }
+}
+

Selective Reindex Operation

+

+ we need to separate out the document of female employees and index to another index. +

+
POST /_reindex
+{
+  "source": {
+    "index": "test-index",
+    "query": {
+      "match": {
+        "gender": "female"
+      }
+    }
+  },
+  "dest": {
+    "index": "test-index-new",
+    "type": "female"
+  }
+}
+
+

Debug and development

-

Queries

Get a detailed view of what a query do: