Browse Source

Correct a code snippet in removal_of_types. (#45118)

Previously, the reindex examples did not include `_doc` as the destination type.
This would result in the reindex failing with the error "Rejecting mapping
update to [users] as the final mapping would have more than 1 type: [_doc,
user]".

Relates to #43100.
Julie Tibshirani 6 years ago
parent
commit
5fc788012d
1 changed files with 4 additions and 2 deletions
  1. 4 2
      docs/reference/mapping/removal_of_types.asciidoc

+ 4 - 2
docs/reference/mapping/removal_of_types.asciidoc

@@ -352,7 +352,8 @@ POST _reindex
     "type": "user"
   },
   "dest": {
-    "index": "users"
+    "index": "users",
+    "type": "_doc"
   }
 }
 
@@ -363,7 +364,8 @@ POST _reindex
     "type": "tweet"
   },
   "dest": {
-    "index": "tweets"
+    "index": "tweets",
+    "type": "_doc"
   }
 }
 ----