Fixing issue with wrong call to Solr error