Exception handling in solr search