Skip to content

Commit

Permalink
Clarify that dynamic date formats are only checked for values that co…
Browse files Browse the repository at this point in the history
…ntain `-`, `/` or `:`. (#28375)

This only applies to 5.x and earlier versions, it was addressed in 6.0.

Closes #26499
  • Loading branch information
jpountz committed Mar 13, 2018
1 parent 6d5f7a2 commit fd763c3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/reference/mapping/dynamic/field-mapping.asciidoc
Expand Up @@ -35,9 +35,10 @@ customised with <<dynamic-templates,`dynamic_templates`>>.
==== Date detection

If `date_detection` is enabled (default), then new string fields are checked
to see whether their contents match any of the date patterns specified in
`dynamic_date_formats`. If a match is found, a new <<date,`date`>> field is
added with the corresponding format.
to see whether their content contains either `:`, `-` or `/`, as well as
whether it matches any of the date patterns specified in `dynamic_date_formats`.
If a match is found, a new <<date,`date`>> field is added with the corresponding
format.

The default value for `dynamic_date_formats` is:

Expand Down

0 comments on commit fd763c3

Please sign in to comment.