[ 
https://issues.apache.org/jira/browse/LUCENE-7212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15239199#comment-15239199
 ] 

Michael McCandless commented on LUCENE-7212:
--------------------------------------------

Maybe we could start with the equivalent of {{LatLonPoint.newDistanceSort}}?  
This will sort all hits according to their earth-as-sphere-surface-distance 
(haversine) from the provided point?

It's really cool if geo3d can also get you distance from any shape, so maybe it 
could have two {{newDistanceSort}} methods, one taking lat/lon, another taking 
a {{GeoShape}}?

Ideally we wouldn't need to expose things like {{GeoDistance}} and 
{{DistanceStyle}} to the user?  Can these somehow be under-the-hood 
implementation details?

> Add Geo3DPoint equivalents of LatLonPointDistanceComparator and 
> LatLonPointSortField
> ------------------------------------------------------------------------------------
>
>                 Key: LUCENE-7212
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7212
>             Project: Lucene - Core
>          Issue Type: Improvement
>    Affects Versions: master
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>
> Geo3D has a number of distance measurements and a generic way of computing 
> interior distance.  It would be great to take advantage of that for queries 
> that return results ordered by interior distance.



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

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

Reply via email to