Hi Mark, I think you would need to issue two seperate queries. Its also a, I was going to say odd usecase but who am I to judge, interesting usecase. If you have a faceted navigation front end you are in real danger of confusing your users. I suppose its a case of what do you want to achieve? Faceting mat not be the way to go.
lee c On 13 May 2011 15:56, Mark <static.void....@gmail.com> wrote: > No mixup. I probably didn't explain myself correctly. > > Suppose my document has fields "title", "description" and "foo". When I > search I would like to search across "title" and "description". I then would > like facet counts on "foo" for documents that matched the "title" field > only. IE, I would like the faceting behavior on "foo" to be exactly as if i > searched against only the "title" field. > > Does that make sense? > > > On 5/12/11 11:30 PM, Otis Gospodnetic wrote: > >> 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 >>> >>>