We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6b97a4 commit d56e2c4Copy full SHA for d56e2c4
src/Elasticsearch/Endpoints/Indices/Flush.php
@@ -16,6 +16,13 @@
16
*/
17
class Flush extends AbstractEndpoint
18
{
19
+ protected $synced = false;
20
+
21
+ public function setSynced($synced)
22
+ {
23
+ $this->synced = $synced;
24
+ }
25
26
/**
27
* @return string
28
@@ -27,6 +34,10 @@ protected function getURI()
34
$uri = "/$index/_flush";
35
}
29
36
37
+ if ($this->synced === true) {
38
+ $uri .= "/synced";
39
40
30
41
return $uri;
31
42
32
43
@@ -49,7 +60,6 @@ protected function getParamWhitelist()
49
60
50
61
protected function getMethod()
51
62
52
- //TODO Fix Me!
53
63
return 'GET';
54
64
55
65
0 commit comments