search: Handle errors from ElasticSearch