Re: Sum of all values in Function Query

2016-08-03 Thread Zheng Lin Edwin Yeo
Hi Mikhail, Yes, I have tried this, and it works for individual fields. Currently I am trying to do something like sum(product(Quanity,Amount). Is is possible to do it in a single Solr query? Regards, Edwin On 3 August 2016 at 16:35, Mikhail Khludnev wrote: > Edwin, > Did you try something

Re: Sum of all values in Function Query

2016-08-03 Thread Mikhail Khludnev
Edwin, Did you try something from http://yonik.com/solr-facet-functions/ ? On Wed, Aug 3, 2016 at 6:58 AM, Zheng Lin Edwin Yeo wrote: > Hi, > > Would like to find out, is it possible for Solr to find a sum of all the > values that are returned in a query? > > For example, when I does a search in

Sum of all values in Function Query

2016-08-02 Thread Zheng Lin Edwin Yeo
Hi, Would like to find out, is it possible for Solr to find a sum of all the values that are returned in a query? For example, when I does a search in which that is a field called "Amount" with fieldType=float. Is it possible for Solr to do return the sum of all the "Amount" that are returned? If