Hi All, Is there a way for faceting only on the resultset returned, rather then all the indexed docs?
The response time for solr query with faceting switched on, takes a lot of time to respond. I see that, it tends to get the distinct values in the facet field and then give the count for each of the distinct value. I believe, since its getting all the distinct values for the facet field from all the indexed docs, the response time is long. e.g. The distinct values for facet field 'company' are 'Apple,Bose,Chevron,Dell,EMC...'. Solr Query for person: q= company=Apple AND technologies:java Gives me following result "facet_counts": { "facet_queries": {}, "facet_fields": { "company": [ "Apple", 25, "BOSE", 26, "Walmart", 0, "Oracle", 25, ... ... ... ... "Microsoft", 34, "ATT", 45 ] }, "facet_dates": {}, "facet_ranges": {} } As you can see, query fetched all the distinct values for the 'Company' along with their count. Is there a way by which I can get the faceting work directly on the resultset, rather than all the indexed documents. Please let me know if you have any questions or concerns. Thanks. Kuchekar, Nilesh