Re: solr faceting sum function

2012-12-13 Thread Jack Krupansky
ache.org Subject: Re: solr faceting sum function Sorrystats.field=price "cmd.ares" wrote: lucene index structure: product_name type price --- iphone4s mobile 2000 iphone5

Re: solr faceting sum function

2012-12-13 Thread Markus Mirsberger
Sorrystats.field=price "cmd.ares" wrote: >lucene index structure: >product_name type price >--- >iphone4s mobile 2000 >iphone5 mobile 5000 >S3 mobile 3000 >i

Re: solr faceting sum function

2012-12-13 Thread Markus Mirsberger
Hi, You can add stats=true&stats.field=type to your query. Then you get a stats section in your result which includes the sum of the choosen field. Cheers, Markus "cmd.ares" wrote: >lucene index structure: >product_name type price >--

Re: solr faceting sum function

2012-12-13 Thread Jack Krupansky
You could do it... if you wrote your own ValueSource that went out and did the sum of the named field for the selected documents end then you could use it in a function query in the &fl field list. -- Jack Krupansky -Original Message- From: cmd.ares Sent: Thursday, December 13, 2012