You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Curtis Fehr (JIRA)" <ji...@apache.org> on 2016/02/02 23:16:39 UTC

[jira] [Created] (SOLR-8634) Math FunctionQuery improper data types

Curtis Fehr created SOLR-8634:
---------------------------------

             Summary: Math FunctionQuery improper data types
                 Key: SOLR-8634
                 URL: https://issues.apache.org/jira/browse/SOLR-8634
             Project: Solr
          Issue Type: Bug
    Affects Versions: 5.4.1, 5.4, 5.3.1, 5.3
            Reporter: Curtis Fehr


When performing sum(), div(), mod() or other math functions on a 64 bit numeric field, the returned values are incorrect.  This is due to these functions being restricted to using floats.  It would make more sense for sum() and div() to be using doubles, and mod() to be using longs.

--the culprit
http://apaste.info/vJH

--in case the above link expires
http://svn.apache.org/viewvc/lucene/dev/tags/lucene_solr_5_3_2/solr/core/src/java/org/apache/solr/search/ValueSourceParser.java?revision=1726288&view=markup&sortby=file



--
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