Try out this with SolrJ SolrQuery query = new SolrQuery(); query.setQuery(q);
// query.setQueryType("dismax"); query.setFacet(true); query.addFacetField("id"); query.addFacetField("text"); query.setFacetMinCount(2); On Thu, Jul 23, 2009 at 5:12 PM, Nishant Chandra <nishant.chan...@gmail.com>wrote: > Hi, > I am new to Solr and need help with the following use case: > I want to provide faceted browsing. For a given product, there are multiple > descriptions (feeds, the description being 100-1500 words) that my > application gets. I want to check for the presence of a fixed number of > terms or attributes (5-10 attributes for a product, e.g. weight, memory > etc) > in the description. The attribute set will be different for each product > category. And then for a given product, I wish to display the numbers of > descriptions found for each attribute (the attribute text is present > somewhere in the description). A description can contain more than 1 > attribute. How can this be achieved? Please help. > Thanks, > Nishant >