Hi.....all, i am new to elasticsearch
Here is my code for creating index
PUT sat1
{
"mappings": {
"sun": {
"properties": {
"location": {
"lat_lon": true,
"geohash_prefix": true,
"type": "geo_point",
"geohash": true
}
}
}
}
}
and error is
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Mapping definition for [location] has unsupported parameters: [geohash : true] [lat_lon : true] [geohash_prefix : true]"
}
],
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping [sun]: Mapping definition for [location] has unsupported parameters: [geohash : true] [lat_lon : true] [geohash_prefix : true]",
"caused_by": {
"type": "mapper_parsing_exception",
"reason": "Mapping definition for [location] has unsupported parameters: [geohash : true] [lat_lon : true] [geohash_prefix : true]"
}
},
"status": 400
}