Unsatisfied ElasticSearch 5.1 geolocation range queries?

According to the release note for Elasticsearch 5, which lists violation changes , the geo_distance_range request is no longer supported. Despite the fact that such a change is not indicated in the official documentation, using this API leads to an error:

[geo_distance_range] queries are no longer supported for geo_point field types. Use geo_distance sort or aggregations 

The intention is to use bucket aggregates instead of the geo_distance_range request function. But aggregates are inherently somewhat different from applying a search filter (possibly in combination with other filters).

Is there a way to achieve the same goal as this feature, originally introduced in previous versions of the Elastic search?

+5
source share

Source: https://habr.com/ru/post/1262568/


All Articles