Common solr search code