1

I want to facet over products in Solr and want to retrieve statistics about the categories. My schema has got a field called categories, a multiValued field. the problem is, that the statistics left out a bunch of categories. Am I wrong with following query? Obviously, but how do I make it right? Pleeeease help, I'm despairing.

q=*:*&rows=0&stats=true&stats.field=product_id&rows=0&stats.facet=categories
sclausen
  • 1,720
  • 3
  • 15
  • 22

1 Answers1

3

The query looks fine, the problem is that it's faceting on a multiValued field:

http://wiki.apache.org/solr/StatsComponent

Computing statistics using stats.facet over a multi-valued field does not work properly.

https://issues.apache.org/jira/browse/SOLR-1782

Hope this helps!

David Faber
  • 12,277
  • 2
  • 29
  • 40
  • thanks! but now i have to learn how to compile solr myself und stuff the result into tomcat :-/ no pain no gain – sclausen Mar 12 '12 at 08:39