Obviously calculating sizes of 200,000 intersections with FilterCache is 100 times slower than traversing 10 - 20,000 documents for smaller DocSets and counting frequencies of Terms.
Not applicable if size of DocSet is close to total number of unique tokens (200,000 in our scenario).
See SimpleFacets.java:
public NamedList getFacetTermEnumCounts(
SolrIndexSearcher searcher,
DocSet docs, ...
Obviously calculating sizes of 200,000 intersections with FilterCache is 100 times slower than traversing 10 - 20,000 documents for smaller DocSets and counting frequencies of Terms.
Not applicable if size of DocSet is close to total number of unique tokens (200,000 in our scenario).
See SimpleFacets.java:
public NamedList getFacetTermEnumCounts(
SolrIndexSearcher searcher,
DocSet docs, ...