-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Allow _geo_distance sort on geo_shape field type #68953
Comments
Pinging @elastic/es-analytics-geo (Team:Analytics) |
I'll hopefully have some bandwidth to fix #66756 this week and next which is related to this |
Until this is resolved, _geo_distance sort docs should be updated to clearly state that geo_shape is not supported. Here is an example of how this API inconsistency between geo_distance geo_shape support and _geo_distance lack of geo_shape support causes user confusion and a poor experience. |
@thibaultclem I'm not currently working on this - thoughts @iverase? |
It is still an open issue. It is a tricky one because while we compute distance using spherical mathematics, our shapes are not spherical, e.g edges are not big circles. Therefore we need to add new functionality that is still not there. You can sort using the geo-shape centroid but I understand it is not the same and results can be surpising. |
Thanks a lot for your quick answer. Yes I understand that it's not as simple as for geo-point. |
Now that
geo_distance
is enable forgeo_shape
field type (via #53466, #64326, and #64224) it would be great to allow_geo_distance
sort ongeo_shape
field type.The text was updated successfully, but these errors were encountered: