Fixed error in retrieving total number of search results from solr