Hi Shalin, specifying facet.query='small'&facet.query=large will actually filter the result also.....and it wont give me facet count for both at the same time... i will give total resultset for both these terms. since i am very new to solr so i dont understand how facet counting behaves in that case as i have seen lots of website showning facet count for multiple terms like amazon does ... in amazon if i search laptop on left pane it shows me count of each brands as well as count of display sizes also but showing total result set for query laptop on right section. so they would be doing it.... i am assuming this must be some simple task.
Here is example for my req: 1. i wanted to search "red dress"... left section has some filters like size as "small", "large", brands as Versace,Marc Jacobs....... As i fire this query it should return me all result matched as "red dress" on right section and i should get count of small, large, versace, Marc Jacobs..... considering i am having all information in a single field as descp index field... After that if i select "large" i should get result matching as both "red dress" and "large" Thanks, Sumit Thanks, Sumit On Wed, Jul 1, 2009 at 9:43 PM, Shalin Shekhar Mangar < shalinman...@gmail.com> wrote: > On Wed, Jul 1, 2009 at 9:42 PM, Shalin Shekhar Mangar < > shalinman...@gmail.com> wrote: > > > On Wed, Jul 1, 2009 at 8:25 PM, Sumit Aggarwal < > sumit.kaggar...@gmail.com>wrote: > > > >> The example given says i can specify only one term as facet prefix. My > >> Requirement is i should be able to pass few set of facet terms which > will > >> return me facet count for those terms only.. > >> > >> So i wanted to do some thing like.... > >> q=red dress > >> facet=true > >> facet.field=descp > >> facet.mincount=1 > >> facet.prefix=['small','large','macys.com'] (here number of > >> facet > >> terms are more than one) > >> > >> > > I think what you need is facet.query. You'll need to send multiple > > facet.query parameters like facet.query=small*&facet.query=large* and so > on. > > > > > Note that this won't give you the matching terms but it will give you a > count of documents matching the facet.query. > > > -- > Regards, > Shalin Shekhar Mangar. >