Add number_of_matching_documents method.
Optimize solr queries.