Docs: Fixed date format default option
This commit is contained in:
parent
08687dfa3d
commit
0eb2ab915d
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
JSON doesn't have a date datatype, so dates in Elasticsearch can either be:
|
JSON doesn't have a date datatype, so dates in Elasticsearch can either be:
|
||||||
|
|
||||||
* strings containing formatted dates, e.g. `¨2015-01-01¨` or `¨2015/01/01 12:10:30`.
|
* strings containing formatted dates, e.g. `"2015-01-01"` or `"2015/01/01 12:10:30"`.
|
||||||
* a long number representing _milliseconds-since-the-epoch_.
|
* a long number representing _milliseconds-since-the-epoch_.
|
||||||
* an integer representing _seconds-since-the-epoch_.
|
* an integer representing _seconds-since-the-epoch_.
|
||||||
|
|
||||||
|
@ -11,9 +11,13 @@ Internally, dates are converted to UTC (if the time-zone is specified) and
|
||||||
stored as a long number representing milliseconds-since-the-epoch.
|
stored as a long number representing milliseconds-since-the-epoch.
|
||||||
|
|
||||||
Date formats can be customised, but if no `format` is specified then it uses
|
Date formats can be customised, but if no `format` is specified then it uses
|
||||||
the default: `strictDateOptionalTime||epoch_millis`. This means that it will
|
the default:
|
||||||
accept dates with optional timestamps, which conform to the formats supported
|
|
||||||
by <<strict-date-time,`strictDateOptionalTime`>> or milliseconds-since-the-epoch.
|
"strict_date_optional_time||epoch_millis"
|
||||||
|
|
||||||
|
This means that it will accept dates with optional timestamps, which conform
|
||||||
|
to the formats supported by <<strict-date-time,`strict_date_optional_time`>>
|
||||||
|
or milliseconds-since-the-epoch.
|
||||||
|
|
||||||
For instance:
|
For instance:
|
||||||
|
|
||||||
|
@ -99,7 +103,7 @@ The following parameters are accepted by `date` fields:
|
||||||
<<mapping-date-format,`format`>>::
|
<<mapping-date-format,`format`>>::
|
||||||
|
|
||||||
The date format(s) that can be parsed. Defaults to
|
The date format(s) that can be parsed. Defaults to
|
||||||
`epoch_millis||strictDateOptionalTime`.
|
`strict_date_optional_time||epoch_millis`.
|
||||||
|
|
||||||
<<ignore-malformed,`ignore_malformed`>>::
|
<<ignore-malformed,`ignore_malformed`>>::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue