I have an elasticsearch model with a field starts_at
with the mapping
"starts_at": {
"type": "date",
"format": "yyyy-MM-dd'T'HH:mm:ssZ"
}
When I try to enter 2018-07-29T13:00:00Z
, I get the error Invalid format: \"2018-07-29\" is too short"
Elasticsearch::Transport::Transport::Errors::BadRequest: [400] {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse [starts_at]"}],"type":"mapper_parsing_exception","reason":"failed to parse [starts_at]","caused_by":{"type":"illegal_argument_exception","reason":"Invalid format: \"2018-07-29\" is too short"}},"status":400}
What Am I doing wrong?