Skip to content

Commit 9318192

Browse files
committed
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.
1 parent a7a419b commit 9318192

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/reference/mapping/removal_of_types.asciidoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,8 @@ POST _reindex
352352
"type": "user"
353353
},
354354
"dest": {
355-
"index": "users"
355+
"index": "users",
356+
"type": "_doc"
356357
}
357358
}
358359
@@ -363,7 +364,8 @@ POST _reindex
363364
"type": "tweet"
364365
},
365366
"dest": {
366-
"index": "tweets"
367+
"index": "tweets",
368+
"type": "_doc"
367369
}
368370
}
369371
----

0 commit comments

Comments
 (0)