lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zheng Lin Edwin Yeo <edwinye...@gmail.com>
Subject Re: Sum of double fields in JSON Facet
Date Tue, 25 Jul 2017 12:57:36 GMT
This is the way which I put my JSON facet.

totalAmount:"sum(sum(amount1_d,amount2_d))"

amount1_d: 69446961.2
amount2_d: 0

Result I get: 69446959.27


Regards,
Edwin


On 25 July 2017 at 20:44, Zheng Lin Edwin Yeo <edwinyeozl@gmail.com> wrote:

> Hi,
>
> I'm trying to do a sum of two double fields in JSON Facet. One of the
> field has a value of 69446961.2, while the other is 0. However, when I get
> the result, I'm getting a value of 69446959.27. This is 1.93 lesser than
> the original value.
>
> What could be the reason?
>
> I'm using Solr 6.5.1.
>
> Regards,
> Edwin
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message