Moved solr queries out into their own lib file. Makes more sense this way.