You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Johnson (JIRA)" <ji...@apache.org> on 2016/11/29 23:45:58 UTC

[jira] [Updated] (SOLR-9813) Scale function returns NaN

     [ https://issues.apache.org/jira/browse/SOLR-9813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Johnson updated SOLR-9813:
--------------------------------
    Attachment: ScaleFloatFunction.java.patch

Proposed patch for issue

> Scale function returns NaN
> --------------------------
>
>                 Key: SOLR-9813
>                 URL: https://issues.apache.org/jira/browse/SOLR-9813
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: query parsers
>    Affects Versions: 6.2.1
>            Reporter: David Johnson
>            Priority: Minor
>         Attachments: ScaleFloatFunction.java.patch
>
>
> If the scale function is passed in NaN (scale(log(0),1,5), it will return NaN, rather than something within the scale.
> This should be detected and the minimum value returned instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org