Hi, I'm trying to create a date mapping in ES 6.4 version.
I keep getting the below error. Can someone please guide me
{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Failed to parse mapping [mymapping]: Invalid format: [yyyy-MM-ddTHH:mm:ssZZ]: Illegal pattern component: T"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [mymapping]: Invalid format: [yyyy-MM-ddTHH:mm:ssZZ]: Illegal pattern component: T","caused_by":{"type":"illegal_argument_exception","reason":"Invalid format: [yyyy-MM-ddTHH:mm:ssZZ]: Illegal pattern component: T","caused_by":{"type":"illegal_argument_exception","reason":"Illegal pattern component: T"}}},"status":400}
curl -X PUT "localhost:9200/my_index" -H 'Content-Type: application/json' -d'
{
"mappings": {
"mymapping": {
"properties": {
"mydate": {
"type": "date",
"format": "yyyy-MM-dd'T'HH:mm:ssZ"
}
}
}
}
}
'