Handle errors from solr1 or solr4