1: | <?php |
2: | |
3: | declare(strict_types=1); |
4: | |
5: | |
6: | |
7: | |
8: | |
9: | |
10: | |
11: | |
12: | |
13: | |
14: | |
15: | |
16: | |
17: | |
18: | |
19: | |
20: | |
21: | |
22: | namespace OpenSearch\Endpoints\Indices; |
23: | |
24: | use OpenSearch\Common\Exceptions\RuntimeException; |
25: | use OpenSearch\Endpoints\AbstractEndpoint; |
26: | |
27: | class RefreshSearchAnalyzers extends AbstractEndpoint |
28: | { |
29: | public function getURI(): string |
30: | { |
31: | $index = $this->index ?? null; |
32: | |
33: | if (isset($index)) { |
34: | return "/_plugins/_refresh_search_analyzers/$index"; |
35: | } |
36: | throw new RuntimeException('Missing index parameter for the endpoint indices.refresh_search_analyzers'); |
37: | } |
38: | |
39: | public function getParamWhitelist(): array |
40: | { |
41: | return []; |
42: | } |
43: | |
44: | public function getMethod(): string |
45: | { |
46: | return 'POST'; |
47: | } |
48: | } |
49: | |