Filter query and facet counts

2008-05-29 Thread Umar Shah
Hi, I have a problem wherein I have field 'type' which can have value A, B C, I want to return facet count for each type but need only show one type of result ( say with max count) so if i have following counts type:A = 300 type:B = 400 type:D = 100 I should only show type:B results

Re: Filter query and facet counts

2008-05-29 Thread Shalin Shekhar Mangar
No, I don't think it is possible to do that with one query. You'll need to make two calls to Solr: 1. Without fq=type:B -- just to get all type facets 2. With fq to get the results. On Thu, May 29, 2008 at 2:12 PM, Umar Shah [EMAIL PROTECTED] wrote: Hi, I have a problem wherein I have field