We have a large index where each document has stored multi-valued string field called products. Also we have lot of customization of search requests. Each request goes through a pre-defined custom search handler and docId are stored for facet calculation.
Following method is called to get facets for products field where docSet is the document ids gathers in the searcher chain. SimpleFacets f = new SimpleFacets(rb.req, docSet, msparams, rb); I found this entry in the logs: Dec 1, 2013 10:42:51 AM org.apache.solr.request.UnInvertedField uninvert INFO: UnInverted multi-valued field {field=products,memSize=158633430,tindexSize=1582000,time=414797,phase1=414140,nTerms=4660858,bigTerms=0,termInstances=32608058,uses=0} Subsequent calls for the same request are rendered fast. Is there any way to improve the facet counting using other methods? Thanks