I am trying to re-index data to correct date formats, however, I am encountering a MapperParsingException when parsing a date field in the format 'Thu Jan 01 02:00:00 SAST 1970'. I used the dateOptionalTime mapping, which I guess is wrong.
None of the built in formats on the Elasticsearch Date Format reference seems to fit the bill though. Is this something I must specifically customize or can a built in Date Format version be used?
EDIT 1: mappings
{
"mappings": {
"users": {
"properties": {
"creationdate": {
"type": "date",
"format": "dateOptionalTime"
},
"email": {
"type": "string"
},
"firstlogin": {
"type": "boolean"
},
"firstname": {
"type": "string"
},
"lastloggedin": {
"type": "date",
"format": "dateOptionalTime"
},
"lastname": {
"type": "string"
},
"lastprofileupdate": {
"type": "date",
"format": "dateOptionalTime"
},
"userid": {
"type": "string"
},
"username": {
"type": "string",
"fields": {
"raw": {
"type": "string",
"index": "not_analyzed"
}
},
"copy_to": [
"username.raw"
]
}
}
}
}
}