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?
source share