refactored solr bot