scout-elasticsearch-driver
scout-elasticsearch-driver copied to clipboard
Throw exception if any record fails and Log the response
Attempting to resolve the https://github.com/babenkoivan/scout-elasticsearch-driver/issues/186 ElasticSearch will return 200 regardless if a record failed with bulk loading, so I'm checking the response for an errors property and if it exists, iterate through all the items return to find the item that caused the error, log them, and throw an exception.
Can you add a more eloquent log message and exception message?