lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Curtis Fehr (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-8634) Math FunctionQuery improper data types
Date Tue, 02 Feb 2016 22:16:39 GMT
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


Mime
View raw message