mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 14:26:27 +00:00
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.
This commit is contained in:
parent
a7a419bee8
commit
9318192578
@ -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"
|
||||
}
|
||||
}
|
||||
----
|
||||
|
Loading…
x
Reference in New Issue
Block a user