You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Florian Schilling (JIRA)" <ji...@apache.org> on 2013/11/21 07:29:38 UTC
[jira] [Commented] (LUCENE-5258) add distance function to
expressions/
[ https://issues.apache.org/jira/browse/LUCENE-5258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13828532#comment-13828532 ]
Florian Schilling commented on LUCENE-5258:
-------------------------------------------
Hi Robert,
this is a great patch!!
Maybe it's possible to set the scale value (TO_KILOMETERS) of the haversin function via argument, so it can also be used with units different from kilometers?
> 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: 4.6, 5.0
>
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org