|
|
@@ -1,9 +1,11 @@
|
|
|
[[mapping-date-format]]
|
|
|
== Date Format
|
|
|
|
|
|
-When defining a `date` type, or when defining `date_formats` in the
|
|
|
-`object` mapping, the value of it is the actual date format that will be
|
|
|
-used to parse the string representation of the date. There are built in
|
|
|
+In JSON documents, dates are represented as strings. Elasticsearch uses a set
|
|
|
+of pre-configured format to recognize and convert those, but you can change the
|
|
|
+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.
|
|
|
|
|
|
The parsing of dates uses http://joda-time.sourceforge.net/[Joda]. The
|