Description
This field does not support sorting by distance, which is a very common use case.
We can add LatLonPoint.newDistanceSort(field, latitude, longitude) which returns a suitable SortField. There are a lot of optimizations esp when e.g. the priority queue gets full to avoid tons of haversin() computations.
Also, we can make use of the SortedNumeric data to switch newDistanceQuery/newPolygonQuery to the two-phase iterator api, so they aren't doing haversin() calls on bkd leaf nodes. It should look a lot like LUCENE-7019
Attachments
Attachments
Issue Links
- is related to
-
LUCENE-7974 Add N-dimensional FloatPoint K-nearest-neighbor implementation
- Closed