You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2016/03/11 23:28:06 UTC

[jira] [Created] (LUCENE-7099) add newDistanceSort to sandbox LatLonPoint

Robert Muir created LUCENE-7099:
-----------------------------------

             Summary: add newDistanceSort to sandbox LatLonPoint
                 Key: LUCENE-7099
                 URL: https://issues.apache.org/jira/browse/LUCENE-7099
             Project: Lucene - Core
          Issue Type: Bug
            Reporter: Robert Muir


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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org