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
I'm trying to delete some documents using the deleteByQuery function but I'm receiving ActionRequestValidationException[Validation Failed: 1: source is missing;].
From the function description I cannot understand what is wrong with the parameters I'm sending. I've tried to pass 'source' parameter also but the same exception occur.
What is the correct syntax here? I'm using 1.0 version of the library.
Hello,
I'm trying to delete some documents using the deleteByQuery function but I'm receiving ActionRequestValidationException[Validation Failed: 1: source is missing;].
From the function description I cannot understand what is wrong with the parameters I'm sending. I've tried to pass 'source' parameter also but the same exception occur.
What is the correct syntax here? I'm using 1.0 version of the library.
$params['index'] = 'yyyy';
$params['type'] = 'xxxx';
$params['body']['query'] = array(
'term' => array(
'entity.entity_id' => $id
)
);
try {
$response = $client->deleteByQuery($params);
}
catch (Exception $e) {
....
}
The text was updated successfully, but these errors were encountered: