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
Dynamic date formats: German date format results in string field #26499
Comments
Prior to 6 dynamic date detection relies on a set of hardcoded characters so only strings that contain |
It works now as expected in 6, Dates separated by a Dot(.) are recognized if "dynamic_date_formats" contains a proper pattern. However, if I add a particular Format to the mapping, the default date detection fails to recognize a date such as "2015/09/02". Without "dynamic_date_formats" set, this date is automatically recognized. Does that mean that adding a custom format overrides the default date detection? Steps to reproducecreate an empty Index, add 4 different dates / timestamps
now, update the mapping by adding dynamic_date_formats....
...next, add 4 new fields containing the same dates / timestamps
The mapping now contains 8 Fields, each field is either of type Text or Date, depending on when the Field has been added (before / after adding dynamic_date_formats):
|
This is the expected behaviour. You overrided the value of |
…ntain `-`, `/` or `:`. This only applies to 5.x and earlier versions, it was addressed in 6.0. Closes elastic#26499
Fixed via #28375 |
Please update the documentation! I am stuck on ES 5.5 and I wasted a huge amount of time until I found this issue. |
Elasticsearch version (
bin/elasticsearch --version
): 5.5.0Description of the problem including expected versus actual behavior: Using
dynamic_date_formats
with a german date and a german format with dots results in the date being stored as a string instead of a dateSteps to reproduce:
The mapping now returns
The text was updated successfully, but these errors were encountered: