Optimization for solr facets