[
https://issues.apache.org/jira/browse/LUCENE-6888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jan Høydahl updated LUCENE-6888:
--------------------------------
Attachment: LUCENE-6888.patch
Attaching patch which prints default value in explain and description.
defaultVal is allowed to be {{null}}, and in that case it defaults to the {{x}}
(source) value. In this patch I explicitly print the source value in that case.
An alternative could be to omit default value and print only
{{map(x,min,max,target)}} as today.
[~shalinmangar], you have been involved in this class before, what is your
opinion?
> explain of map() Function does not show default value
> -----------------------------------------------------
>
> Key: LUCENE-6888
> URL: https://issues.apache.org/jira/browse/LUCENE-6888
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/query/scoring
> Reporter: Jan Høydahl
> Assignee: Jan Høydahl
> Labels: explain
> Fix For: 5.4
>
> Attachments: LUCENE-6888.patch
>
>
> The explain output from the {{map(x,min,max,target,default)}} function does
> not print {{default}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]