thedude
Well-known member
XenES 1.1.2
When doing a bulk insert in ES, a response containing "errors": false means all subrequests completed successfully (ElasticSearch reference on bulk insert response).
XenES_Search_SourceHandler_ElasticSearch::isIndexSuccessful contains
meaning isIndexSuccessful checks if an "errors" value was set, but then declares it unsuccessful (by returning false) if "errors" is set to false, when it should be declared unsuccessful if "errors" is set to true.
XenES_Search_SourceHandler_ElasticSearch::_triggerFailedIndexError compensates for this with
When doing a bulk insert in ES, a response containing "errors": false means all subrequests completed successfully (ElasticSearch reference on bulk insert response).
XenES_Search_SourceHandler_ElasticSearch::isIndexSuccessful contains
Code:
if (isset($result->errors) && !$result->errors)
{
return false;
}
XenES_Search_SourceHandler_ElasticSearch::_triggerFailedIndexError compensates for this with
Code:
else
{
// no error
return;
}
Last edited: