Skip to content

Commit

Permalink
Percolate endpoint accepts doc ID
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfractal committed Feb 11, 2014
1 parent 054e60a commit c232f56
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Elasticsearch/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,9 @@ public function countPercolate($params = array())
public function percolate($params)
{
$index = $this->extractArgument($params, 'index');


$type = $this->extractArgument($params, 'type');


$body = $this->extractArgument($params, 'body');
$type = $this->extractArgument($params, 'type');
$id = $this->extractArgument($params, 'id');
$body = $this->extractArgument($params, 'body');



Expand All @@ -411,6 +408,7 @@ public function percolate($params)
$endpoint = $endpointBuilder('Percolate');
$endpoint->setIndex($index)
->setType($type)
->setID($id)
->setBody($body);
$endpoint->setParams($params);
$response = $endpoint->performRequest();
Expand Down

0 comments on commit c232f56

Please sign in to comment.