I create ElasticSearch (7.7 version) index (with mappings) in cdk script. here is my mapping for the date field:
{
"mappings": {
"numeric_detection": true,
"properties": {
"approximateArrivalTime": {
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss.SSSXXX"
}, ......}
But I keep having this error message:
{\"type\":\"illegal_argument_exception\",\"reason\":\"failed to parse date field [2020-11-23 11:48:20.472] with format [yyyy-MM-dd HH:mm:ss.SSSXXX]\",\"caused_by\":{\"type\":\"date_time_parse_exception\",\"reason\":\"Text \\u00272020-11-23 11:48:20.472\\u0027 could not be parsed at index 23\"}}}
What could be the reason?