[
https://issues.apache.org/jira/browse/LUCENE-7099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15193546#comment-15193546
]
ASF subversion and git services commented on LUCENE-7099:
---------------------------------------------------------
Commit 80fe00ba18ac1f834028eb0064115a00bafe1f20 in lucene-solr's branch
refs/heads/master from [~rcmuir]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=80fe00b ]
LUCENE-7099: improve test to exercise searchAfter
> 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
> Attachments: LUCENE-7099.patch
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]