knn ordering with <-> #4594
Replies: 1 comment 1 reply
-
This seems to me like a perfect case for just registering a function (which is very easy to do). I would not introduce a new operator into HQL for this. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
k-nearest-neighbour ordering is implemented in postgis https://postgis.net/workshops/postgis-intro/knn.html
would it make sense to introduce the knn order operator <-> as a custom jpql operator in hibernate spatial? on the one hand, it seems to be a useful feature, on the other hand it is not supported on mysql and mariadb AFAICS.
Beta Was this translation helpful? Give feedback.
All reactions