You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given:
ES: 7.17
ruflin/elastica: 7.2.0 (but the issue is present on the dev version too)
Background: Due to architectural issues - we run updateByQuery in loop. Troubles in debugging had appeared.
By the ES documentation the response of UpdateByQuery request is documented. It seems, for now, is impossible to retrieve the message, why request was failed.
Response::HasError() will always return false, because of error property is not documented for _update_by_query. As a result error message will be empty:
Given:
ES: 7.17
ruflin/elastica: 7.2.0 (but the issue is present on the dev version too)
Background: Due to architectural issues - we run
updateByQuery
in loop. Troubles in debugging had appeared.By the ES documentation the response of UpdateByQuery request is documented. It seems, for now, is impossible to retrieve the message, why request was failed.
Response::HasError()
will always returnfalse
, because oferror
property is not documented for_update_by_query
. As a result error message will be empty:Elastica/src/Response.php
Lines 134 to 139 in e2cb89b
isOk
is a way to identify the response status. But still, no error message will be provided.Example of failed response from elastic:
The text was updated successfully, but these errors were encountered: