[Docs] updated refrences to dynamic_date_formats
This commit is contained in:
parent
57b2d45142
commit
18e12ef66c
|
@ -1,9 +1,11 @@
|
||||||
[[mapping-date-format]]
|
[[mapping-date-format]]
|
||||||
== Date Format
|
== Date Format
|
||||||
|
|
||||||
When defining a `date` type, or when defining `date_formats` in the
|
In JSON documents, dates are represented as strings. Elasticsearch uses a set
|
||||||
`object` mapping, the value of it is the actual date format that will be
|
of pre-configured format to recognize and convert those, but you can change the
|
||||||
used to parse the string representation of the date. There are built in
|
defaults by specifying the `format` option when defining a `date` type, or by
|
||||||
|
specifying `dynamic_date_formats` in the `root object` mapping (which will
|
||||||
|
be used unless explicitly overridden by a `date` type). There are built in
|
||||||
formats supported, as well as complete custom one.
|
formats supported, as well as complete custom one.
|
||||||
|
|
||||||
The parsing of dates uses http://joda-time.sourceforge.net/[Joda]. The
|
The parsing of dates uses http://joda-time.sourceforge.net/[Joda]. The
|
||||||
|
|
|
@ -126,7 +126,8 @@ stored and they are always indexed.
|
||||||
Date fields are special since they are represented as a `string`. Date
|
Date fields are special since they are represented as a `string`. Date
|
||||||
fields are detected if they can be parsed as a date when they are first
|
fields are detected if they can be parsed as a date when they are first
|
||||||
introduced into the system. The set of date formats that are tested
|
introduced into the system. The set of date formats that are tested
|
||||||
against can be configured using the `date_formats` and explained later.
|
against can be configured using the `dynamic_date_formats` on the root object,
|
||||||
|
which is explained later.
|
||||||
|
|
||||||
Note, once a field has been added, *its type can not change*. For
|
Note, once a field has been added, *its type can not change*. For
|
||||||
example, if we added age and its value is a number, then it can't be
|
example, if we added age and its value is a number, then it can't be
|
||||||
|
|
Loading…
Reference in New Issue