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
Sorrystats.field=price
"cmd.ares" wrote:
>lucene index structure:
>product_name type price
>---
>iphone4s mobile 2000
>iphone5 mobile 5000
>S3 mobile 3000
>i
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
>--
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