created index with mapping:
"mappings": {
"city": {
"properties": {
"name": {
"type": "string",
"store": "yes",
"index": "analyzed"
},
"location": {
"type": "geo_point"
}
}
}
}
and search/sort with _geo_distance:
"query": {
"match_all": {}
},
"fields": "name",
"sort": {
"_geo_distance": {
"location": [
121.571079,
25.049787
],
"unit": "km"
}
}
will throw
ClassCastException[org.elasticsearch.index.fielddata.plain.PagedBytesIndexFieldData
cannot be cast to org.elasticsearch.index.fielddata.IndexGeoPointFieldData]
exception.
Elasticsearch version: 1.1.0
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/e45d5add-3f74-4c02-9748-9c100d5b4f34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.