I'm not sure ... just reading it yesterday night ... but isn't the unapplied patch from Harish https://issues.apache.org/jira/secure/attachment/12400054/SOLR-680.patch what you want?
Regards, Peter. > Running 1.4.1. > > I'm able to execute stats queries against multi-valued fields, but when > given a facet, the statscomponent only considers documents that have a facet > value as the last value in the field. > > As an example, imagine you are running stats on "fooCount", and you want to > facet on "bar", which is multi-valued. Two documents... > > 1) > fooCount = 100 > bar = A, B, C > > 2) > fooCount = 5 > bar = C, B, A > > stats.field=fooCount&stats=true&stats.facet=bar > > I would expect to see stats for A, B, and C all with sums of 105. But what > I'm seeing is stats for C and A with sums of 100 and 5 respectively. > > Is this expected behavior? Something I'm possibly doing wrong? Is this > just not advisable? > > Thanks! > > -- http://jetwick.com twitter search prototype