lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] [Commented] (LUCENE-6578) Geo3d: arcDistanceToShape() method may be useful
Date Thu, 25 Jun 2015 17:48:05 GMT


Michael McCandless commented on LUCENE-6578:

I've looked at the patch a bit more and it already adds an interface (GeoOutsideDistance)
for these new methods?

Why should we make the abstractions even deeper (adding DistanceStyle/DistanceType)?  I think
all the abstractions the spatial module already has (even in its test cases) make it very
hard to approach for newcomers ... I don't think we should pollute geo3d in the same way?
 Abstractions are costly, and we should err towards "too few abstractions" when unsure.

I'll open an issue to move geo3d to sandbox ... I think this is a better home for it for now,
letting users know it's very new and APIs are subject to change, and letting [~daddywri] make
faster iterations to it.  It would also un-block issues like LUCENE-6480 ... I think a postings
and BKD tree integration based on geo3d would be very powerful.

> Geo3d: arcDistanceToShape() method may be useful
> ------------------------------------------------
>                 Key: LUCENE-6578
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/spatial
>            Reporter: Karl Wright
>         Attachments: LUCENE-6578.patch, LUCENE-6578.revised.patch
> I've got an application that seems like it may need the ability to compute a new kind
of arc distance, from a GeoPoint to the nearest edge/point of a GeoShape.  Adding this method
to the interface, and corresponding implementations, would increase the utility of the package
for ranking purposes.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message