CSV data looks like his
220364000,2015-09-04 11:04:23,Under way using engine,65.5000000,-53.5114983
Mapping to create index a009 was created this way.
$ curl -XPUT 'http://10.30.90.5:9200/a009' -d '{
"mappings": {
"type": {
"properties": {
"mmsi" : { "type": "string" },
"datetime" : { "type": "date", "format": "YYYY-MM-dd HH:mm:ss"},
"status" : { "type": "string", "index": "not_analyzed" },
"lat" : { "type": "float" },
"long" : { "type": "float" }
}
}
}
}'
Getting this error:
"error"=>{"type"=>"mapper_parsing_exception",
"reason"=>"failed to parse [datetime]",
"caused_by"=>{"type"=>"illegal_argument_exception",
"reason"=>"Invalid format: "2015-09-04 11:04:23" is malformed at " 11:04:23""}}
How is it that
2015-09-04 11:04:23 (a date value)
is malformed?