I should be able to use parameter ignore_z_value to ignore z values indexed to geo_point field.
But it doesn't work, instead I get the following exception:
{
"error" : {
"root_cause" : [
{
"type" : "parse_exception",
"reason" : "field must be either [lat], [lon] or [geohash]"
}
],
"type" : "mapper_parsing_exception",
"reason" : "failed to parse field [location] of type [geo_point]",
"caused_by" : {
"type" : "parse_exception",
"reason" : "field must be either [lat], [lon] or [geohash]"
}
},
"status" : 400
}
Steps to Reproduce
I have created an index with the following mapping:
Welcome to the community. First of all, just say that the version of Elasticsearch is way too old, you should consider upgrading as a matter of urgency.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.