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

Robert Muir commented on LUCENE-5258:
-------------------------------------

{quote}
Also, isn't the dot product formulation for distance faster and simpler in the 
first place? I thought that the point of the spherical geometry formulations 
was that they allowed direct use of log trig tables in the bad old days of 
sextants and paper tables.
{quote}

Hmm at least with the naive formulation, its no faster at all? acos vs asin or 
whatever to solve for distance? Unless you have a trick? :)

> add distance function to expressions/
> -------------------------------------
>
>                 Key: LUCENE-5258
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5258
>             Project: Lucene - Core
>          Issue Type: New Feature
>          Components: modules/other
>            Reporter: Robert Muir
>             Fix For: 5.0, 4.6
>
>         Attachments: LUCENE-5258.patch
>
>
> Adding this static function makes it really easy to incorporate distance with 
> the score or other signals in arbitrary ways, e.g. score / (1 + 
> log(distance)) or whatever.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to