Skip to content

Commit d56e2c4

Browse files
committed
Fix Indices/Flush after autogeneration
1 parent b6b97a4 commit d56e2c4

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/Elasticsearch/Endpoints/Indices/Flush.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
*/
1717
class Flush extends AbstractEndpoint
1818
{
19+
protected $synced = false;
20+
21+
public function setSynced($synced)
22+
{
23+
$this->synced = $synced;
24+
}
25+
1926
/**
2027
* @return string
2128
*/
@@ -27,6 +34,10 @@ protected function getURI()
2734
$uri = "/$index/_flush";
2835
}
2936

37+
if ($this->synced === true) {
38+
$uri .= "/synced";
39+
}
40+
3041
return $uri;
3142
}
3243

@@ -49,7 +60,6 @@ protected function getParamWhitelist()
4960
*/
5061
protected function getMethod()
5162
{
52-
//TODO Fix Me!
5363
return 'GET';
5464
}
5565
}

0 commit comments

Comments
 (0)