Adding in debug code for solr queries.