Skip to content

Commit

Permalink
The body query must be nested in a query key
Browse files Browse the repository at this point in the history
  • Loading branch information
jclg committed Jul 24, 2014
1 parent 6876c9e commit 02576ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/units/Client.php
Expand Up @@ -86,7 +86,9 @@ public function testDeleteByQuery() {
$client->refresh();

$del = $client->deleteByQuery(array(
'term' => array('title' => $word)
'query' => array(
'term' => array('title' => $word)
)
));

$hits = $client->search(array(
Expand Down

0 comments on commit 02576ef

Please sign in to comment.