Get a correct unique document count by queying solr. Fixes #244