Skip to content

Commit 139b06b

Browse files
committed
Updated endpoints to ES 8.19.0
1 parent df8ee73 commit 139b06b

15 files changed

+592
-27
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
## Release 8.19.0
2+
3+
- Updated the APIs to Elasticsearch [8.19.0](https://www.elastic.co/guide/en/elasticsearch/reference/current/release-notes-8.19.0.html)
4+
5+
## Release 8.18.0
6+
7+
- Updated the APIs to Elasticsearch [8.18.0](https://www.elastic.co/guide/en/elasticsearch/reference/current/release-notes-8.18.0.html)
8+
9+
## Release 8.17.0
10+
11+
- Updated the APIs to Elasticsearch [8.17.0](https://www.elastic.co/guide/en/elasticsearch/reference/current/release-notes-8.17.0.html)
12+
13+
## Release 8.16.0
14+
15+
- Updated the APIs to Elasticsearch [8.16.0](https://www.elastic.co/guide/en/elasticsearch/reference/current/release-notes-8.16.0.html)
16+
- Added the support of PHP 8.4 [#1415](https://github.com/elastic/elasticsearch-php/pull/1415)
17+
118
## Release 8.15.0
219

320
Updated the APIs to Elasticsearch [8.15.0](https://www.elastic.co/guide/en/elasticsearch/reference/current/release-notes-8.15.0.html) and added the support of OpenTelemetry.

docs/release-notes.asciidoc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[[release-notes]]
22
== Release notes
33

4+
* <<rn-8-19-0>>
5+
* <<rn-8-18-0>>
6+
* <<rn-8-17-0>>
7+
* <<rn-8-16-0>>
48
* <<rn-8-15-0>>
59
* <<rn-8-14-0>>
610
* <<rn-8-13-0>>
@@ -47,6 +51,32 @@
4751
* <<rn-7-0-1>>
4852
* <<rn-7-0-0>>
4953

54+
[discrete]
55+
[[rn-8-19-0]]
56+
=== 8.19.0
57+
58+
* Updated the API endpoints to Elasticserach 8.19.0
59+
60+
[discrete]
61+
[[rn-8-18-0]]
62+
=== 8.18.0
63+
64+
* Updated the API endpoints to Elasticserach 8.18.0
65+
66+
[discrete]
67+
[[rn-8-17-0]]
68+
=== 8.17.0
69+
70+
* Updated the API endpoints to Elasticserach 8.17.0
71+
72+
[discrete]
73+
[[rn-8-16-0]]
74+
=== 8.16.0
75+
76+
* Updated the API endpoints to Elasticserach 8.16.0
77+
* Added the support of PHP 8.4 https://github.com/elastic/elasticsearch-php/pull/1415[#1415]
78+
79+
5080
[discrete]
5181
[[rn-8-15-0]]
5282
=== 8.15.0

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
final class Client implements ClientInterface
2929
{
3030
const CLIENT_NAME = 'es';
31-
const VERSION = '8.18.0';
31+
const VERSION = '8.19.0';
3232
const API_COMPATIBILITY_HEADER = '%s/vnd.elasticsearch+%s; compatible-with=8';
3333

3434
const SEARCH_ENDPOINTS = [

src/Endpoints/Cluster.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ public function existsComponentTemplate(?array $params = null)
195195
* master_timeout?: int|string, // Explicit operation timeout for connection to master node
196196
* local?: bool, // Return local information, do not retrieve the state from master node (default: false)
197197
* include_defaults?: bool, // Return all default configurations for the component template (default: false)
198+
* flat_settings?: bool, // Return settings in flat format (default: false)
199+
* settings_filter?: string, // Filter out results, for example to filter out sensitive information. Supports wildcards or full settings keys
198200
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
199201
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
200202
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -218,7 +220,7 @@ public function getComponentTemplate(?array $params = null)
218220
$url = '/_component_template';
219221
$method = 'GET';
220222
}
221-
$url = $this->addQueryString($url, $params, ['master_timeout','local','include_defaults','pretty','human','error_trace','source','filter_path']);
223+
$url = $this->addQueryString($url, $params, ['master_timeout','local','include_defaults','flat_settings','settings_filter','pretty','human','error_trace','source','filter_path']);
222224
$headers = [
223225
'Accept' => 'application/json',
224226
];
@@ -441,7 +443,7 @@ public function postVotingConfigExclusions(?array $params = null)
441443
* @param array{
442444
* name: string, // (REQUIRED) The name of the template
443445
* create?: bool, // Whether the index template should only be added if new or can also replace an existing one
444-
* timeout?: int|string, // Explicit operation timeout
446+
* cause?: string, // User defined reason for create the component template
445447
* master_timeout?: int|string, // Specify timeout for connection to master
446448
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
447449
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
@@ -465,7 +467,7 @@ public function putComponentTemplate(?array $params = null)
465467
$url = '/_component_template/' . $this->encode($params['name']);
466468
$method = 'PUT';
467469

468-
$url = $this->addQueryString($url, $params, ['create','timeout','master_timeout','pretty','human','error_trace','source','filter_path']);
470+
$url = $this->addQueryString($url, $params, ['create','cause','master_timeout','pretty','human','error_trace','source','filter_path']);
469471
$headers = [
470472
'Accept' => 'application/json',
471473
'Content-Type' => 'application/json',

src/Endpoints/Eql.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ public function getStatus(?array $params = null)
156156
* keep_alive?: int|string, // Update the time interval in which the results (partial or final) for this search will be available
157157
* allow_partial_search_results?: bool, // Control whether the query should keep running in case of shard failures, and return partial results
158158
* allow_partial_sequence_results?: bool, // Control whether a sequence query should return partial results or no results at all in case of shard failures. This option has effect only if [allow_partial_search_results] is true.
159+
* ccs_minimize_roundtrips?: bool, // Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution
160+
* ignore_unavailable?: bool, // Whether specified concrete indices should be ignored when unavailable (missing or closed)
161+
* allow_no_indices?: bool, // Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
162+
* expand_wildcards?: string, // Whether to expand wildcard expression to concrete indices that are open, closed or both.
159163
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
160164
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
161165
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -178,7 +182,7 @@ public function search(?array $params = null)
178182
$url = '/' . $this->encode($params['index']) . '/_eql/search';
179183
$method = empty($params['body']) ? 'GET' : 'POST';
180184

181-
$url = $this->addQueryString($url, $params, ['wait_for_completion_timeout','keep_on_completion','keep_alive','allow_partial_search_results','allow_partial_sequence_results','pretty','human','error_trace','source','filter_path']);
185+
$url = $this->addQueryString($url, $params, ['wait_for_completion_timeout','keep_on_completion','keep_alive','allow_partial_search_results','allow_partial_sequence_results','ccs_minimize_roundtrips','ignore_unavailable','allow_no_indices','expand_wildcards','pretty','human','error_trace','source','filter_path']);
182186
$headers = [
183187
'Accept' => 'application/json',
184188
'Content-Type' => 'application/json',

src/Endpoints/Esql.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class Esql extends AbstractEndpoint
3737
* format?: string, // a short version of the Accept header, e.g. json, yaml
3838
* delimiter?: string, // The character to use between values within a CSV row. Only valid for the csv format.
3939
* drop_null_columns?: bool, // Should entirely null columns be removed from the results? Their name and type will be returning in a new `all_columns` section.
40+
* allow_partial_results?: bool, // If `true`, partial results will be returned if there are shard failures, butthe query can continue to execute on other clusters and shards.If `false`, the entire query will fail if there areany failures.
4041
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
4142
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
4243
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -58,7 +59,7 @@ public function asyncQuery(?array $params = null)
5859
$url = '/_query/async';
5960
$method = 'POST';
6061

61-
$url = $this->addQueryString($url, $params, ['format','delimiter','drop_null_columns','pretty','human','error_trace','source','filter_path']);
62+
$url = $this->addQueryString($url, $params, ['format','delimiter','drop_null_columns','allow_partial_results','pretty','human','error_trace','source','filter_path']);
6263
$headers = [
6364
'Accept' => 'application/json',
6465
'Content-Type' => 'application/json',
@@ -114,6 +115,7 @@ public function asyncQueryDelete(?array $params = null)
114115
*
115116
* @param array{
116117
* id: string, // (REQUIRED) The async query ID
118+
* format?: string, // a short version of the Accept header, e.g. json, yaml
117119
* wait_for_completion_timeout?: int|string, // Specify the time that the request should block waiting for the final response
118120
* keep_alive?: int|string, // Specify the time interval in which the results (partial or final) for this search will be available
119121
* drop_null_columns?: bool, // Should entirely null columns be removed from the results? Their name and type will be returning in a new `all_columns` section.
@@ -138,7 +140,7 @@ public function asyncQueryGet(?array $params = null)
138140
$url = '/_query/async/' . $this->encode($params['id']);
139141
$method = 'GET';
140142

141-
$url = $this->addQueryString($url, $params, ['wait_for_completion_timeout','keep_alive','drop_null_columns','pretty','human','error_trace','source','filter_path']);
143+
$url = $this->addQueryString($url, $params, ['format','wait_for_completion_timeout','keep_alive','drop_null_columns','pretty','human','error_trace','source','filter_path']);
142144
$headers = [
143145
'Accept' => 'application/json',
144146
];
@@ -195,6 +197,7 @@ public function asyncQueryStop(?array $params = null)
195197
* format?: string, // a short version of the Accept header, e.g. json, yaml
196198
* delimiter?: string, // The character to use between values within a CSV row. Only valid for the csv format.
197199
* drop_null_columns?: bool, // Should entirely null columns be removed from the results? Their name and type will be returning in a new `all_columns` section.
200+
* allow_partial_results?: bool, // If `true`, partial results will be returned if there are shard failures, butthe query can continue to execute on other clusters and shards.If `false`, the entire query will fail if there areany failures.
198201
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
199202
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
200203
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -216,7 +219,7 @@ public function query(?array $params = null)
216219
$url = '/_query';
217220
$method = 'POST';
218221

219-
$url = $this->addQueryString($url, $params, ['format','delimiter','drop_null_columns','pretty','human','error_trace','source','filter_path']);
222+
$url = $this->addQueryString($url, $params, ['format','delimiter','drop_null_columns','allow_partial_results','pretty','human','error_trace','source','filter_path']);
220223
$headers = [
221224
'Accept' => 'application/json',
222225
'Content-Type' => 'application/json',

src/Endpoints/Ilm.php

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ class Ilm extends AbstractEndpoint
3535
*
3636
* @param array{
3737
* policy: string, // (REQUIRED) The name of the index lifecycle policy
38+
* master_timeout?: int|string, // Explicit operation timeout for connection to master node
39+
* timeout?: int|string, // Explicit operation timeout
3840
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
3941
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
4042
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -56,7 +58,7 @@ public function deleteLifecycle(?array $params = null)
5658
$url = '/_ilm/policy/' . $this->encode($params['policy']);
5759
$method = 'DELETE';
5860

59-
$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
61+
$url = $this->addQueryString($url, $params, ['master_timeout','timeout','pretty','human','error_trace','source','filter_path']);
6062
$headers = [
6163
'Accept' => 'application/json',
6264
];
@@ -75,6 +77,7 @@ public function deleteLifecycle(?array $params = null)
7577
* index: string, // (REQUIRED) The name of the index to explain
7678
* only_managed?: bool, // filters the indices included in the response to ones managed by ILM
7779
* only_errors?: bool, // filters the indices included in the response to ones in an ILM error state, implies only_managed
80+
* master_timeout?: int|string, // Explicit operation timeout for connection to master node
7881
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
7982
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
8083
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -96,7 +99,7 @@ public function explainLifecycle(?array $params = null)
9699
$url = '/' . $this->encode($params['index']) . '/_ilm/explain';
97100
$method = 'GET';
98101

99-
$url = $this->addQueryString($url, $params, ['only_managed','only_errors','pretty','human','error_trace','source','filter_path']);
102+
$url = $this->addQueryString($url, $params, ['only_managed','only_errors','master_timeout','pretty','human','error_trace','source','filter_path']);
100103
$headers = [
101104
'Accept' => 'application/json',
102105
];
@@ -113,6 +116,8 @@ public function explainLifecycle(?array $params = null)
113116
*
114117
* @param array{
115118
* policy?: string, // The name of the index lifecycle policy
119+
* master_timeout?: int|string, // Explicit operation timeout for connection to master node
120+
* timeout?: int|string, // Explicit operation timeout
116121
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
117122
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
118123
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -136,7 +141,7 @@ public function getLifecycle(?array $params = null)
136141
$url = '/_ilm/policy';
137142
$method = 'GET';
138143
}
139-
$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
144+
$url = $this->addQueryString($url, $params, ['master_timeout','timeout','pretty','human','error_trace','source','filter_path']);
140145
$headers = [
141146
'Accept' => 'application/json',
142147
];
@@ -266,6 +271,8 @@ public function moveToStep(?array $params = null)
266271
*
267272
* @param array{
268273
* policy: string, // (REQUIRED) The name of the index lifecycle policy
274+
* master_timeout?: int|string, // Explicit operation timeout for connection to master node
275+
* timeout?: int|string, // Explicit operation timeout
269276
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
270277
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
271278
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -288,7 +295,7 @@ public function putLifecycle(?array $params = null)
288295
$url = '/_ilm/policy/' . $this->encode($params['policy']);
289296
$method = 'PUT';
290297

291-
$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
298+
$url = $this->addQueryString($url, $params, ['master_timeout','timeout','pretty','human','error_trace','source','filter_path']);
292299
$headers = [
293300
'Accept' => 'application/json',
294301
'Content-Type' => 'application/json',
@@ -381,6 +388,8 @@ public function retry(?array $params = null)
381388
* @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-start.html
382389
*
383390
* @param array{
391+
* master_timeout?: int|string, // Explicit operation timeout for connection to master node
392+
* timeout?: int|string, // Explicit operation timeout
384393
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
385394
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
386395
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -400,7 +409,7 @@ public function start(?array $params = null)
400409
$url = '/_ilm/start';
401410
$method = 'POST';
402411

403-
$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
412+
$url = $this->addQueryString($url, $params, ['master_timeout','timeout','pretty','human','error_trace','source','filter_path']);
404413
$headers = [
405414
'Accept' => 'application/json',
406415
];
@@ -416,6 +425,8 @@ public function start(?array $params = null)
416425
* @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-stop.html
417426
*
418427
* @param array{
428+
* master_timeout?: int|string, // Explicit operation timeout for connection to master node
429+
* timeout?: int|string, // Explicit operation timeout
419430
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
420431
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
421432
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -435,7 +446,7 @@ public function stop(?array $params = null)
435446
$url = '/_ilm/stop';
436447
$method = 'POST';
437448

438-
$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
449+
$url = $this->addQueryString($url, $params, ['master_timeout','timeout','pretty','human','error_trace','source','filter_path']);
439450
$headers = [
440451
'Accept' => 'application/json',
441452
];

0 commit comments

Comments
 (0)