Re: Applying Sum on Field

2013-07-11 Thread Jack Krupansky
wiki.apache.org/solr/StatsComponent -- Jack Krupansky -Original Message- From: Jamshaid Ashraf Sent: Thursday, July 11, 2013 7:56 AM To: solr-user@lucene.apache.org Subject: Applying Sum on Field Hi, I'm a new solr user, I wanted to know is there any way to apply sum on a field in a resul

Re: Applying Sum on Field

2013-07-11 Thread Peter Sturge
Hi, If you mean adding up numeric values stored in fields - no, Solr doesn't do this by default. We had a similar requirement for this, and created a custom SearchComponent to handle sum, average, stats etc. There are a number of things you need to bear in mind, such as: * Handling errors when a

Applying Sum on Field

2013-07-11 Thread Jamshaid Ashraf
Hi, I'm a new solr user, I wanted to know is there any way to apply sum on a field in a result document of group query? Following is the query and its result set, I wanted to apply sum on 'price' filed grouping on type: *Sample input:* 3 Caffe Yummm Drinking a latte at Caffe Grecco in SF shi