scout-elasticsearch-driver icon indicating copy to clipboard operation
scout-elasticsearch-driver copied to clipboard

Throw exception if any record fails and Log the response

Open clovenlife opened this issue 5 years ago • 1 comments

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.

clovenlife avatar Apr 18 '19 17:04 clovenlife

Can you add a more eloquent log message and exception message?

iget-esoares avatar Dec 28 '19 18:12 iget-esoares