Skip to content

Commit

Permalink
Fix Indices/Flush after autogeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfractal committed May 31, 2016
1 parent b6b97a4 commit d56e2c4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Elasticsearch/Endpoints/Indices/Flush.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
*/
class Flush extends AbstractEndpoint
{
protected $synced = false;

public function setSynced($synced)
{
$this->synced = $synced;
}

/**
* @return string
*/
Expand All @@ -27,6 +34,10 @@ protected function getURI()
$uri = "/$index/_flush";
}

if ($this->synced === true) {
$uri .= "/synced";
}

return $uri;
}

Expand All @@ -49,7 +60,6 @@ protected function getParamWhitelist()
*/
protected function getMethod()
{
//TODO Fix Me!
return 'GET';
}
}

0 comments on commit d56e2c4

Please sign in to comment.