Hello,
I'm following an elasticsearch course on linux academy where the instruction creates a custom index in the dev tools of kibana.
He's using version 6, but I'm using version 7, so I'm not sure if the problem is related to that, but this is what I'm trying to create, and it doesn't work:
PUT my_index
{
"aliases": {
"my_alias": {}
},
"mappings": {
"my_type" : {
"properties": {
"geo": {
"properties": {
"coordinates": {
"type": "geo_point"
}
}
}
}
}
},
"settings": {
"number_of_shards": 1,
"number_of_replicas": 2
}
}
When I do that, I get the following error:
{
"error" : {
"root_cause" : [
{
"type" : "mapper_parsing_exception",
"reason" : "Root mapping definition has unsupported parameters: [my_type : {properties={geo={properties={coordinates={type=geo_point}}}}}]"
}
],
"type" : "mapper_parsing_exception",
"reason" : "Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [my_type : {properties={geo={properties={coordinates={type=geo_point}}}}}]",
"caused_by" : {
"type" : "mapper_parsing_exception",
"reason" : "Root mapping definition has unsupported parameters: [my_type : {properties={geo={properties={coordinates={type=geo_point}}}}}]"
}
},
"status" : 400
}
Any ideas why that is?
Thanks!