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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to