Hi, I think there is a bit of a mixup here. Facets are not about which field a match was on, but about what values hits have in one or more fields you facet on.
Otis ---- Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch Lucene ecosystem search :: http://search-lucene.com/ ----- Original Message ---- > From: Mark <static.void....@gmail.com> > To: solr-user@lucene.apache.org > Sent: Fri, May 13, 2011 1:19:10 AM > Subject: Faceting question > > Is there anyway to perform a search that searches across 2 fields yet only >gives me facets accounts for documents matching 1 field? > > For example > > If I have fields A & B and I perform a search across I would like to match > my >query across either of these two fields. I would then like facet counts for >how >many documents matched in field A only. > > Can this accomplished? If not out of the box what classes should I look into >to create this myself? > > Thanks >