Skip to content

Commit a8fb0fd

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 5d0f952 commit a8fb0fd

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
@@ -351,7 +351,8 @@ POST _reindex
351351
"type": "user"
352352
},
353353
"dest": {
354-
"index": "users"
354+
"index": "users",
355+
"type": "_doc"
355356
}
356357
}
357358
@@ -362,7 +363,8 @@ POST _reindex
362363
"type": "tweet"
363364
},
364365
"dest": {
365-
"index": "tweets"
366+
"index": "tweets",
367+
"type": "_doc"
366368
}
367369
}
368370
----

0 commit comments

Comments
 (0)