-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove geohash_cell and geo_distance_range queries #21825
Comments
Some of the methods have been removed or deprecated. Also related to elastic#21825.
@nknize i thought that the |
From a recent conversation with @nknize, it will not come back. |
I was looking into adding deprecation warnings for |
I agree we should have made the transition more smooth. Your understanding that they work on 2.x indices and fail on 5.x indices sounds correct to me. Geo-hash cell feels very esoteric to me so I am not too concerned, but for |
and print out deprecation warnings when they are used ;) |
Its correct that |
I just pinged @clintongormley to have his opinion about this issue and he said he would not add the queries back until someone makes a case for them. So let's just fix our docs to reflect the current state of things in 5.x? |
Support for this query has been removed in 5.0. See https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_50_search_changes.html and elastic#21825
What is the alternative in 5.2 for geohash_cell? Or was it just removed without a new implementation? |
You coud run a bounding box for the given geo hash? |
A bounding box needs two points, but I just have that one geo_hash of the aggregation. The geohash in itself is not really a point, but rather a "geo-box". So I think it should be easy to use it in a bounding-box-query, but I cannot provide the same geohash for both points in the query |
What's the alternative of geo_distance_range? The document "Distance aggregations or sorting should be used instead" is kind of vague. Is using a bool must_not query to exclude a geo_distance from another a good solution? |
yes |
Regarding
I think that there is a need of some decoding here. Maybe we should add that the query was removed and include also that for people previously running a |
@gmoskovicz see #25154 |
Thanks @clintongormley for pointing me to this, and @jpountz for creating it. |
It looks like these methods were removed from the documentation and the query builder. Closing. |
Related to #21670
We are still documenting
geo_distance_range
in our docs:And also Java Client users can still see the related builders without any deprecation notice:
In 5.0, 5.1 and 5.x branches we should mark related methods and classes as deprecated, same for our documentation (ref guide and java guide)
In 6.0 we should remove those methods.
In 5.0 series, we should use the deprecation logger in case anyone is using that on 2.x indices.
For 5.x indices, it fails nicely with messages like:
[failed to parse [geohash_cell] query. geo_point field no longer supports geohash_cell queries]
[geo_distance_range] queries are no longer supported for geo_point field types. Use geo_distance sort or aggregations
The text was updated successfully, but these errors were encountered: