Mapper Parsing Exception

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
}

Your mapping was for older versions like 5.x.

Lot of things changed since then.
Where is this coming from?

Thanks for replying back, David. This helps!! I was just watching elastic search youtube course that was uploaded 5 years ago and was using mapping of older version in new version of ES.