On Sun, Jul 17, 2011 at 10:38 AM, Jeff Schmidt <j...@535consulting.com> wrote: > I don't want to query for a particular facet value, but rather have Solr do a > grouping of facet values. I'm not sure about the appropriate nomenclature > there. But, I have a multi-valued field named "process" that can have values > such as "catalysis", "activation", "inhibition", "expression", > "modification", "reaction" etc. About ~100K documents are indexed where this > field may have none or one or more of these processes. > > When the client makes a request, I need to tell it that for the process > "catalysis", refer to documents 1,5,6,8,32 etc., and for "modification", > documents 43545,22,2134, etc.
This sounds like grouping: http://wiki.apache.org/solr/FieldCollapsing Unfortunately it only works on single values fields, and you can't sort based on numbers of matches either. The closest you can get today is to issue 2 requests... the first a faceting request to get the top constraints, and then a second that uses group.query for each constraint you are interested in. -Yonik http://www.lucidimagination.com