Adding support for stats queries in Solr.