Date formats do they really use camelCase or under_bars?

The documentationhttp://www.elasticsearch.org/guide/reference/mapping/date-format/on date-formats suggest to get yyyyMMdd format mapping to use "format":
"basic_date".
However, when querying the _mapping for a type with a "type":"date", I get
"format":"dateOptionalTime" instead of "date_optional_time" as per the
documentation.

So what is it, camelCase or under_bars when specifying date formats?
Could someone update the documentation please?

Thanks much,
Douglas

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey

both work, you can specifiy the date either using camel case or the
snake_case. If you do not specify anything the camelCase version is
returned.

--Alex

On Mon, Jul 22, 2013 at 9:29 PM, Douglas Moore dmoore247@gmail.com wrote:

The documentationhttp://www.elasticsearch.org/guide/reference/mapping/date-format/on date-formats suggest to get yyyyMMdd format mapping to use "format":
"basic_date".
However, when querying the _mapping for a type with a "type":"date", I get
"format":"dateOptionalTime" instead of "date_optional_time" as per the
documentation.

So what is it, camelCase or under_bars when specifying date formats?
Could someone update the documentation please?

Thanks much,
Douglas

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.