Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use deleteByQuery function #56

Closed
nignatov opened this issue Mar 14, 2014 · 1 comment
Closed

How to use deleteByQuery function #56

nignatov opened this issue Mar 14, 2014 · 1 comment

Comments

@nignatov
Copy link

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) {
....
}

@nignatov
Copy link
Author

Ahhh, stupid me.
The problem comes from my proxy, no issue with deleteByQuery().
Sorry for disturbing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant