hello everyone, I have an error when I insert my data, because of my bad mapping.
the format is 31/12/2018 for exemple
Here is the error
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "No handler for type [DATE] declared on field [DATE_JOUR]"
}
],
"type": "mapper_parsing_exception",
"reason": "No handler for type [DATE] declared on field [DATE_JOUR]"
},
"status": 400
}
here is the mapping:
"DATE_JOUR": {
"type": "DATE",
"format": "dd-mm-yyyy"
}
does anyone have an idea of where the mistake comes from?
it's work thank you.
But when i put json data with this date "DATE_JOUR":"2018-02-28 00:00:00.0"
i have this error :
String value: failed to parse field [DATE_JOUR] of type [date] in document with id 'ibzq_WoBlHm1_K3edXic'
it's not possible post this format ? and elasticsearch keep only the days, months and year
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.