making solr optional and defaulting to google