What about adding an optional parameter to the field definition in the IndexSchema for defaultFacet="true/false". This would make solr's functionality/configuration similar with many of the major search engine vendors and keep people from having to follow naming conventions for fields. Then facet.field=* just turns on those fields with defaultFacet="true" but still lets you facet on others if you deem necessary. If there were a list of default facet fields it might also let the index warming process pre-cache the results of those filter queries which would be a nice side benefit.
The *_facet thing scares me because I'm afraid I'll eventually be 'forced' to have field names like: myfield_facet_vector_stem_morelikethis_highlight. - will -----Original Message----- From: Ryan McKinley (JIRA) [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 23, 2007 3:38 PM To: solr-dev@lucene.apache.org Subject: [jira] Commented: (SOLR-247) Allow facet.field=* to facet on all fields (without knowing what they are) [ https://issues.apache.org/jira/browse/SOLR-247?page=com.atlassian.jira.p lugin.system.issuetabpanels:comment-tabpanel#action_12498338 ] Ryan McKinley commented on SOLR-247: ------------------------------------ > > There are *lots* of reasons why a field might be indexed though, so faceting on every indexed field doesn't seem like it would ever make sense. > agreed, but *_facet would be useful > > if we do this, i would think it only makes sense to generalize the use of "*" in both fl and facet.field into a true glob style syntax One issue is that fl=XXX is typically a field list separated with "," or "|", facet.field expects each field as a separate parameter. > Allow facet.field=* to facet on all fields (without knowing what they are) > ------------------------------------------------------------------------ -- > > Key: SOLR-247 > URL: https://issues.apache.org/jira/browse/SOLR-247 > Project: Solr > Issue Type: Improvement > Reporter: Ryan McKinley > Priority: Minor > Attachments: SOLR-247-FacetAllFields.patch > > > I don't know if this is a good idea to include -- it is potentially a bad idea to use it, but that can be ok. > This came out of trying to use faceting for the LukeRequestHandler top term collecting. > http://www.nabble.com/Luke-request-handler-issue-tf3762155.html -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.