diff --git a/index.html b/index.html index 31d33a5..c88ab11 100644 --- a/index.html +++ b/index.html @@ -582,29 +582,50 @@
GET /my_index_name/_upgrade?pretty&human
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ POST /_reindex
+{
+ "source": {
+ "index": "test-index"
+ },
+ "dest": {
+ "index": "test-index-new"
+ }
+}
+ POST /_reindex
+{
+ "source": {
+ "index": "test-index"
+ },
+ "dest": {
+ "index": "test-index-new"
+ }
+}
+ + 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"
+ }
+}
+
+ Get a detailed view of what a query do: