[jira] [Commented] (LUCENE-5258) add distance function to expressions/

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Commented] (LUCENE-5258) add distance function to expressions/

Nick Burch (Jira)

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

Ted Dunning commented on LUCENE-5258:

All is possible.

I build up a more principled test using caliper and now see the Fast.* methods coming in about 30% faster.  Dot method is slower.

Benchmark results at https://microbenchmarks.appspot.com/runs/b79313c0-bbc0-45bf-9f96-8ae5ff0bac77

Code for the benchmark is at https://gist.github.com/tdunning/6881908

> 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

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