You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Steve Rowe (JIRA)" <ji...@apache.org> on 2017/10/01 22:56:01 UTC

[jira] [Resolved] (LUCENE-7974) Add N-dimensional FloatPoint K-nearest-neighbor implementation

     [ https://issues.apache.org/jira/browse/LUCENE-7974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Rowe resolved LUCENE-7974.
--------------------------------
       Resolution: Fixed
    Fix Version/s: master (8.0)
                   7.1

{quote}
bq. I'm wondering whether the use of getMinDelta could be replaced with Math.nextUp/Math.nextDown?

getMinDelta calculates a fudge factor from the distance exponent \[...\]

bq. OK, I see now. I (wrongly) thought it was only a way to make sure that the float cast did not round down.
{quote}

Thanks Adrien.  I committed the patch with a slightly edited version of my explanation above added to the {{getMinDelta()}} javadocs.

> Add N-dimensional FloatPoint K-nearest-neighbor implementation
> --------------------------------------------------------------
>
>                 Key: LUCENE-7974
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7974
>             Project: Lucene - Core
>          Issue Type: New Feature
>          Components: modules/sandbox
>            Reporter: Steve Rowe
>            Assignee: Steve Rowe
>            Priority: Minor
>             Fix For: 7.1, master (8.0)
>
>         Attachments: LUCENE-7974.patch
>
>
> From LUCENE-7069:
> {quote}
> KD trees (used by Lucene's new dimensional points) excel at finding "nearest neighbors" to a given query point ... I think we should add this to Lucene's sandbox
> [...]
> It could also be generalized to more than 2 dimensions, but for now I'm making the class package private in sandbox for just the geo2d (lat/lon) use case.
> {quote}
> This issue is to generalize {{LatLonPoint.nearest()}} to more than 2 dimensions.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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