[
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: [email protected]
For additional commands, e-mail: [email protected]