separated Solr logic to class

basic version, 2 tests failing