YH - One technique (that the Smithsonian employs, I believe) is a technique to index the field names for the attributes into a separate field, facet on that first, and then facet on the fields you'd like from that response in a second request to Solr.
There's a basic hack here so the indexing client doesn't need to add the "fields used" field: <https://issues.apache.org/jira/browse/SOLR-1280> Ideally, this could all be made part of one request to Solr - and I can envision a pre-faceting component (post querying) to dynamically figure out the best fields to facet on, set those into the request context, and the rest is magic. Erik On Jul 5, 2011, at 13:15 , Way Cool wrote: > Hi, guys, > > We have more than 1000 attributes scattered around 700K docs. Each doc might > have about 50 attributes. I would like Solr to return up to 20 facets for > every searches, and each search can return facets dynamically depending on > the matched docs. Anyone done that before? That'll be awesome if the facets > returned will be changed after we drill down facets. > > I have looked at the following docs: > http://wiki.apache.org/solr/SimpleFacetParameters > http://www.lucidimagination.com/devzone/technical-articles/faceted-search-solr > > Wondering what's the best way to accomplish that. Any advice? > > Thanks, > > YH