Skip to content

Commit 4fab3de

Browse files
authored
Prep for 9.2.0 release (#1477)
* Prep for 9.2.0 release * Updated the client to 9.2.0 and ES version to 9.2.0-SNAPSHOT * Updated github actions to 9.2 * Fixed an issue with missing Content-Type + fixed tests generator
1 parent 0319cd6 commit 4fab3de

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1857
-1323
lines changed

.buildkite/pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ steps:
77
env:
88
PHP_VERSION: "{{ matrix.php }}"
99
TEST_SUITE: "{{ matrix.suite }}"
10-
STACK_VERSION: 9.1.0-SNAPSHOT
11-
BRANCH_CLIENT_TESTS: 9.1
10+
STACK_VERSION: 9.2.0-SNAPSHOT
11+
BRANCH_CLIENT_TESTS: 9.2
1212
matrix:
1313
setup:
1414
suite:

.github/workflows/integration_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
matrix:
1212
php-version: [8.1, 8.2, 8.3, 8.4]
1313
os: [ubuntu-latest]
14-
es-version: [9.1.0-SNAPSHOT]
14+
es-version: [9.2.0-SNAPSHOT]
1515

1616
steps:
1717
- name: Checkout

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
matrix:
1212
php-version: [8.1, 8.2, 8.3, 8.4]
1313
os: [ubuntu-latest]
14-
es-version: [9.1.0-SNAPSHOT]
14+
es-version: [9.2.0-SNAPSHOT]
1515

1616
steps:
1717
- name: Checkout

.github/workflows/yaml_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
matrix:
1212
php-version: [8.1, 8.2, 8.3, 8.4]
1313
os: [ubuntu-latest]
14-
es-version: [9.1.0-SNAPSHOT]
14+
es-version: [9.2.0-SNAPSHOT]
1515
test-suite: [stack]
16-
branch-client-tests: ["9.1"]
16+
branch-client-tests: ["9.2"]
1717

1818
steps:
1919
- name: Checkout

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
final class Client implements ClientInterface
3030
{
3131
const CLIENT_NAME = 'es';
32-
const VERSION = '9.1.0';
32+
const VERSION = '9.2.0';
3333
const API_COMPATIBILITY_HEADER = '%s/vnd.elasticsearch+%s; compatible-with=9';
3434
const API_VERSION_HEADER = 'elastic-api-version';
3535
const API_VERSION = '2023-10-31';

src/Endpoints/AsyncSearch.php

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
class AsyncSearch extends AbstractEndpoint
3030
{
3131
/**
32-
* Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted.
32+
* Delete an async search
3333
*
34-
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
34+
* @link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit
3535
* @group serverless
3636
*
3737
* @param array{
@@ -68,9 +68,9 @@ public function delete(?array $params = null)
6868

6969

7070
/**
71-
* Retrieves the results of a previously submitted async search request given its ID.
71+
* Get async search results
7272
*
73-
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
73+
* @link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit
7474
* @group serverless
7575
*
7676
* @param array{
@@ -110,9 +110,9 @@ public function get(?array $params = null)
110110

111111

112112
/**
113-
* Retrieves the status of a previously submitted async search request given its ID.
113+
* Get the async search status
114114
*
115-
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
115+
* @link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit
116116
* @group serverless
117117
*
118118
* @param array{
@@ -150,9 +150,9 @@ public function status(?array $params = null)
150150

151151

152152
/**
153-
* Executes a search request asynchronously.
153+
* Run an async search
154154
*
155-
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
155+
* @link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit
156156
* @group serverless
157157
*
158158
* @param array{
@@ -177,6 +177,7 @@ public function status(?array $params = null)
177177
* expand_wildcards?: string, // Whether to expand wildcard expression to concrete indices that are open, closed or both.
178178
* lenient?: bool, // Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
179179
* preference?: string, // Specify the node or shard the operation should be performed on (default: random)
180+
* project_routing?: string, // A Lucene query using project metadata tags to limit which projects to search, such as _alias:_origin or _alias:*pr*. Only supported in serverless.
180181
* rest_total_hits_as_int?: bool, // Indicates whether hits.total should be rendered as an integer or an object in the rest search response
181182
* q?: string, // Query in the Lucene query string syntax
182183
* routing?: string|array<string>, // A comma-separated list of specific routing values
@@ -224,7 +225,7 @@ public function submit(?array $params = null)
224225
$url = '/_async_search';
225226
$method = 'POST';
226227
}
227-
$url = $this->addQueryString($url, $params, ['wait_for_completion_timeout','keep_on_completion','keep_alive','batched_reduce_size','request_cache','analyzer','analyze_wildcard','ccs_minimize_roundtrips','default_operator','df','explain','stored_fields','docvalue_fields','from','ignore_unavailable','ignore_throttled','allow_no_indices','expand_wildcards','lenient','preference','rest_total_hits_as_int','q','routing','search_type','size','sort','_source','_source_excludes','_source_includes','terminate_after','stats','suggest_field','suggest_mode','suggest_size','suggest_text','timeout','track_scores','track_total_hits','allow_partial_search_results','typed_keys','version','seq_no_primary_term','max_concurrent_shard_requests','pretty','human','error_trace','source','filter_path']);
228+
$url = $this->addQueryString($url, $params, ['wait_for_completion_timeout','keep_on_completion','keep_alive','batched_reduce_size','request_cache','analyzer','analyze_wildcard','ccs_minimize_roundtrips','default_operator','df','explain','stored_fields','docvalue_fields','from','ignore_unavailable','ignore_throttled','allow_no_indices','expand_wildcards','lenient','preference','project_routing','rest_total_hits_as_int','q','routing','search_type','size','sort','_source','_source_excludes','_source_includes','terminate_after','stats','suggest_field','suggest_mode','suggest_size','suggest_text','timeout','track_scores','track_total_hits','allow_partial_search_results','typed_keys','version','seq_no_primary_term','max_concurrent_shard_requests','pretty','human','error_trace','source','filter_path']);
228229
$headers = [
229230
'Accept' => 'application/json',
230231
'Content-Type' => 'application/json',

src/Endpoints/Autoscaling.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
class Autoscaling extends AbstractEndpoint
3030
{
3131
/**
32-
* Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
32+
* Delete an autoscaling policy
3333
*
34-
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-delete-autoscaling-policy.html
34+
* @link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-autoscaling-delete-autoscaling-policy
3535
*
3636
* @param array{
3737
* name: string, // (REQUIRED) the name of the autoscaling policy
@@ -69,9 +69,9 @@ public function deleteAutoscalingPolicy(?array $params = null)
6969

7070

7171
/**
72-
* Gets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
72+
* Get the autoscaling capacity
7373
*
74-
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-capacity.html
74+
* @link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-autoscaling-get-autoscaling-capacity
7575
*
7676
* @param array{
7777
* master_timeout?: int|string, // Timeout for processing on master node
@@ -105,9 +105,9 @@ public function getAutoscalingCapacity(?array $params = null)
105105

106106

107107
/**
108-
* Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
108+
* Get an autoscaling policy
109109
*
110-
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-policy.html
110+
* @link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-autoscaling-get-autoscaling-capacity
111111
*
112112
* @param array{
113113
* name: string, // (REQUIRED) the name of the autoscaling policy
@@ -144,9 +144,9 @@ public function getAutoscalingPolicy(?array $params = null)
144144

145145

146146
/**
147-
* Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
147+
* Create or update an autoscaling policy
148148
*
149-
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-put-autoscaling-policy.html
149+
* @link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-autoscaling-put-autoscaling-policy
150150
*
151151
* @param array{
152152
* name: string, // (REQUIRED) the name of the autoscaling policy

0 commit comments

Comments
 (0)