-
Notifications
You must be signed in to change notification settings - Fork 25.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecation check for indices with multiple types #36952
Conversation
Multiple types can only show up in indices from the 5.x series, but they can't be reindexed quite as easily as indices from 5.x that only have one mapping type. Therefore, we want to present a separate message about indices with multiple mapping types.
Pinging @elastic/es-core-features |
Pinging @elastic/es-search |
Thanks @gwbrown! This seems very helpful. I think that if the index metadata contains more than one mapping type, there are actually two possibilities:
It might make sense to call out these two cases separately for clarity, and also because the second one tends to be easier to resolve (the |
If there are only two mappings, and one of them is _default_, then the index can be reindexed as normal
@jtibshirani Thanks! I've updated the check to cover that case - it looks from my testing like if there are two mappings, and one of them is |
The check for multiple document types looks good to me. I'm not totally up-to-date on how our migration assistant works , but if a |
@gwbrown Related question: How does this check work for indices with the Seems to me that these indices also cannot be reindex automatically since the usage of that field will need to be updated as well. If Elasticsearch supported creating a mapping field with the name |
@joshdover That's also a good point - I'll take a look at mappings that aren't allowed in indices created in 6.0, but are allowed in 6.0 for indices created in 5.x and see if there's anything else we're missing that should block the reindex assistant. |
Regarding my comment #36952 (comment), @gwbrown pointed out that the reindex helper will automatically copy mappings from the old index to the new one. Because the mapping items from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 for the changes relating to multiple document mapping types.
Thanks @jtibshirani! We do intend to have a bit more discussion around the how the Kibana's reindex assistant will handle Regarding @joshdover's comment about |
Multiple types can only show up in indices from the 5.x series, but they
can't be reindexed quite as easily as indices from 5.x that only have
one mapping type. Therefore, we want to present a separate message about
indices with multiple mapping types.
Relates to #36024 and #35190
/cc @joshdover