I was wondering if anyone has any ideas for making UnInvertedField.uninvert() faster, or other alternatives for generating facets quickly.
The vast majority of the CPU time for our Solr instances is spent generating UnInvertedFields after each commit. Here's an example of one of our slower fields: [2011-10-19 17:46:01,055] INFO125974[pool-1-thread-1] - (SolrCore:440) - UnInverted multi-valued field {field=authorCS,memSize=38063628,tindexSize=422652, time=15610,phase1=15584,nTerms=1558514,bigTerms=0,termInstances=4510674,uses=0} That is from an index with approximately 8 million documents. After each commit, it takes on average about 90 seconds to uninvert all the fields that we facet on. Any ideas at all would be greatly appreciated. -Michael