I Have created date_withdrawn filed of type date in mapping.The problem was while I'm bulk indexing in some documents we have date_withdrawn=" " and it is raising the following error.
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "failed to parse [date_withdrawn]"
}
],
"type": "mapper_parsing_exception",
"reason": "failed to parse [date_withdrawn]",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "Invalid format: \"\""
}
},
"status": 400
}
Please find and help me to accept date field with ""