Hello,
I am trying to add mappings to the index named ecommerce. But this throws "mapper_parsing_exception" error.
Any help on rectifying this error would be appreciated. Elastic Search version is 7.12.0
PUT /ecommerce
{
"mappings":{
"product":{
"properties":{
"name": {
"type": "string"
},
"price":{
"type": "double"
},
"description":{
"type": "string"
},
"status":{
"type": "string"
},
"quantity":{
"type":"integer"
},
"categories":{
"type": "nested",
"properties":{
"name":{
"type": "string"
}
}
},
"tags":{
"type":"string"
}
}
}
}
}
Error is as follows
{
"error" : {
"root_cause" : [
{
"type" : "mapper_parsing_exception",
"reason" : "Root mapping definition has unsupported parameters: [product : {properties={quantity={type=integer}, price={type=double}, name={type=string}, description={type=string}, categories={type=nested, properties={name={type=string}}}, status={type=string}, tags={type=string}}}]"
}
],
"type" : "mapper_parsing_exception",
"reason" : "Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [product : {properties={quantity={type=integer}, price={type=double}, name={type=string}, description={type=string}, categories={type=nested, properties={name={type=string}}}, status={type=string}, tags={type=string}}}]",
"caused_by" : {
"type" : "mapper_parsing_exception",
"reason" : "Root mapping definition has unsupported parameters: [product : {properties={quantity={type=integer}, price={type=double}, name={type=string}, description={type=string}, categories={type=nested, properties={name={type=string}}}, status={type=string}, tags={type=string}}}]"
}
},
"status" : 400
}