Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ steps:
env:
PHP_VERSION: "{{ matrix.php }}"
TEST_SUITE: "{{ matrix.suite }}"
STACK_VERSION: 9.1.0-SNAPSHOT
BRANCH_CLIENT_TESTS: 9.1
STACK_VERSION: 9.2.0-SNAPSHOT
BRANCH_CLIENT_TESTS: 9.2
matrix:
setup:
suite:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
matrix:
php-version: [8.1, 8.2, 8.3, 8.4]
os: [ubuntu-latest]
es-version: [9.1.0-SNAPSHOT]
es-version: [9.2.0-SNAPSHOT]

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
matrix:
php-version: [8.1, 8.2, 8.3, 8.4]
os: [ubuntu-latest]
es-version: [9.1.0-SNAPSHOT]
es-version: [9.2.0-SNAPSHOT]

steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/yaml_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
matrix:
php-version: [8.1, 8.2, 8.3, 8.4]
os: [ubuntu-latest]
es-version: [9.1.0-SNAPSHOT]
es-version: [9.2.0-SNAPSHOT]
test-suite: [stack]
branch-client-tests: ["9.1"]
branch-client-tests: ["9.2"]

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
final class Client implements ClientInterface
{
const CLIENT_NAME = 'es';
const VERSION = '9.1.0';
const VERSION = '9.2.0';
const API_COMPATIBILITY_HEADER = '%s/vnd.elasticsearch+%s; compatible-with=9';
const API_VERSION_HEADER = 'elastic-api-version';
const API_VERSION = '2023-10-31';
Expand Down
19 changes: 10 additions & 9 deletions src/Endpoints/AsyncSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
class AsyncSearch extends AbstractEndpoint
{
/**
* 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.
* Delete an async search
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
* @link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit
* @group serverless
*
* @param array{
Expand Down Expand Up @@ -68,9 +68,9 @@ public function delete(?array $params = null)


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


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


/**
* Executes a search request asynchronously.
* Run an async search
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
* @link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit
* @group serverless
*
* @param array{
Expand All @@ -177,6 +177,7 @@ public function status(?array $params = null)
* expand_wildcards?: string, // Whether to expand wildcard expression to concrete indices that are open, closed or both.
* lenient?: bool, // Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
* preference?: string, // Specify the node or shard the operation should be performed on (default: random)
* 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.
* rest_total_hits_as_int?: bool, // Indicates whether hits.total should be rendered as an integer or an object in the rest search response
* q?: string, // Query in the Lucene query string syntax
* routing?: string|array<string>, // A comma-separated list of specific routing values
Expand Down Expand Up @@ -224,7 +225,7 @@ public function submit(?array $params = null)
$url = '/_async_search';
$method = 'POST';
}
$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']);
$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']);
$headers = [
'Accept' => 'application/json',
'Content-Type' => 'application/json',
Expand Down
16 changes: 8 additions & 8 deletions src/Endpoints/Autoscaling.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
class Autoscaling extends AbstractEndpoint
{
/**
* Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
* Delete an autoscaling policy
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-delete-autoscaling-policy.html
* @link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-autoscaling-delete-autoscaling-policy
*
* @param array{
* name: string, // (REQUIRED) the name of the autoscaling policy
Expand Down Expand Up @@ -69,9 +69,9 @@ public function deleteAutoscalingPolicy(?array $params = null)


/**
* 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.
* Get the autoscaling capacity
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-capacity.html
* @link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-autoscaling-get-autoscaling-capacity
*
* @param array{
* master_timeout?: int|string, // Timeout for processing on master node
Expand Down Expand Up @@ -105,9 +105,9 @@ public function getAutoscalingCapacity(?array $params = null)


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


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