I'm trying to create an index and add mappings. Here is what my data looks like:
{
"test" : [ {
"data" : "119050300",
"date" : "00:00 2019-06-03"
} ]
}
Here is my mapping command:
http://...com:5101/...060619/_mapping
{
"mappings": {
"properties": {
"date": {
"type": "date",
"format": "HH:mm yyyy-MM-dd"
},
"data": {
"type": "integer"
}
}
}
}
Before I put data in I try and set the mapping. This is the error I get:
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: [mappings : {properties={date={format=HH:mm yyyy-MM-dd, type=date}, data={type=integer}}}]"
}
],
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: [mappings : {properties={date={format=HH:mm yyyy-MM-dd, type=date}, data={type=integer}}}]"
},
"status": 400
}