complete overhaul of code to implement Solr queries
implementation of Solr queries