"type" : "mapper_parsing_exception"


(Kabali12345) #1

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
}


(David Pilato) #2

Please format your code using </> icon as explained in this guide. It will make your post more readable.

Or use markdown style like:

```
CODE
```

geo point does not support parameters you added.
Why did you add them?

See https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-point.html


(system) closed #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.