Solr Flare solves this by first doing a cool hand Luke request
handler query to get all the field names, and then in search requests
it facets on facet_* but by adding each of those to the HTTP request
params.
A Solr-side capability to do it is well warranted in my opinion, I
just haven't gotten around to implementing it myself and scratching
that itch. I'm inexperienced with the new query component stuff, but
I bet a query component could be easily written to make this dynamic
based on the fields in the index. I do, however, think core support
for wildcarded field names everywhere (sensible) that a field name is
specified is the way to go. For example, fl=*_s,*_i. I would rather
see a core patch that implemented it in a way that made it pervasive
than just for faceting.
Erik
On Jan 10, 2008, at 12:52 PM, Matthew Runo wrote:
I see a patch with that ticket from you - that seems to support the
use case of *, but not things otherwise containing a *, such as
attribute_*.
I suppose it's not a big deal to look up the attributes from our DB
and go from there, I was just looking for a way to do it all in
Solr if possible.
Thanks!
Matthew Runo
Software Developer
Zappos.com
702.943.7833
On Jan 10, 2008, at 9:31 AM, Ryan McKinley wrote:
Best case: I can do some sort of "addFacetField("attribute_*")
magic.
https://issues.apache.org/jira/browse/SOLR-247
but i don't think there is any progress on it....
ryan