Implement auto upgrade for date fields #55533
Labels
enhancement
New value added to drive a business result
Feature:Upgrade Assistant
Team:Kibana Management
Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
v6.8.6
We noticed that there is an increased number of users struggling to migrate their mappings with date fields using old style joda patterns. Since 7.0 they need to upgrade to java.style patterns on these date fields.
This requires an index with a new mapping and a reindex.
Because this is a change in 7.0 I suppose I would need to have a logic like this in 6.8.
Should I implement this in javascript in kibana? Or should I aim to use the new infrastructure with painless #49764 (although I see an 8.0 label..)
The logic would be fairly simple and would perform automatic reindex only when a mapping migration can be 100% determined. Things like
YYYY
->yyyy
oryyyy
->uuuu
and so on.https://github.com/elastic/elasticsearch/blob/6.8/server/src/main/java/org/elasticsearch/common/joda/JodaDeprecationPatterns.java
Not sure if this should be under the
reindex
button in migration assistant or a logic invisible to a user?Let me know what you think
relates issue in ES elastic/elasticsearch#45548
The text was updated successfully, but these errors were encountered: