From b04eb434c374bd9f83fc7da5bd78822446ced1f5 Mon Sep 17 00:00:00 2001 From: Yogendra Sharma Date: Tue, 3 Oct 2017 14:56:55 +0530 Subject: [PATCH 1/5] add reindex api example --- index.html | 60 ++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 42 insertions(+), 18 deletions(-) diff --git a/index.html b/index.html index 31d33a5..cf21f46 100644 --- a/index.html +++ b/index.html @@ -583,24 +583,48 @@

Indices status and management

- - - - - - - - - - - - - - - - - - + +

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

From 403b1e0d30447144961ae8069620890f3772ac32 Mon Sep 17 00:00:00 2001 From: Yogendra Sharma Date: Tue, 3 Oct 2017 14:57:51 +0530 Subject: [PATCH 2/5] add reindex api example --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index cf21f46..4cd7917 100644 --- a/index.html +++ b/index.html @@ -584,7 +584,7 @@

Indices status and management

-

Reindex API

+

Reindex API

Simple Reindex Operation

POST /_reindex
 {

From 16d4414dde6a6e55d775762ab6991c7ae5fd1868 Mon Sep 17 00:00:00 2001
From: Yogendra Sharma 
Date: Tue, 3 Oct 2017 15:22:58 +0530
Subject: [PATCH 3/5] remove es1 class

---
 index.html | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/index.html b/index.html
index 4cd7917..08cbe38 100644
--- a/index.html
+++ b/index.html
@@ -582,11 +582,11 @@ 

Indices status and management

GET /my_index_name/_upgrade?pretty&human
- +

Reindex API

Simple Reindex Operation

-
POST /_reindex
+	
POST /_reindex
 {
   "source": {
     "index": "test-index"
@@ -595,7 +595,7 @@ 

Simple Reindex Operation

"index": "test-index-new" } }
-
POST /_reindex
+	
POST /_reindex
 {
   "source": {
     "index": "test-index"
@@ -608,7 +608,7 @@ 

Selective Reindex Operation

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

-
POST /_reindex
+    
POST /_reindex
 {
   "source": {
     "index": "test-index",
@@ -625,7 +625,8 @@ 

Selective Reindex Operation

} }
- +
+

Debug and development

From 86fadf891d59bcc6f669b30b855de9a23be54cf3 Mon Sep 17 00:00:00 2001 From: Yogendra Sharma Date: Tue, 3 Oct 2017 19:12:05 +0530 Subject: [PATCH 4/5] resolve json typo --- index.html | 1 - 1 file changed, 1 deletion(-) diff --git a/index.html b/index.html index 08cbe38..4e7e9c4 100644 --- a/index.html +++ b/index.html @@ -623,7 +623,6 @@

Selective Reindex Operation

"type": "female" } } -}
From 7451756a553e4a11f580d72a63dd48ac4f2f108d Mon Sep 17 00:00:00 2001 From: Yogendra Sharma Date: Tue, 3 Oct 2017 19:59:07 +0530 Subject: [PATCH 5/5] remove reIndex menu entry --- index.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/index.html b/index.html index 4e7e9c4..c88ab11 100644 --- a/index.html +++ b/index.html @@ -583,7 +583,6 @@

Indices status and management

-

Reindex API

Simple Reindex Operation

POST /_reindex
@@ -606,7 +605,7 @@ 

Simple Reindex Operation

}

Selective Reindex Operation

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

POST /_reindex
 {
@@ -625,10 +624,8 @@ 

Selective Reindex Operation

}
-

Debug and development

-

Queries

Get a detailed view of what a query do: