Skip to content

Commit 6cd0fe6

Browse files
committed
Updated endpoints to 8.17.0
1 parent ab0fdb4 commit 6cd0fe6

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

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.16.0';
31+
const VERSION = '8.17.0';
3232
const API_COMPATIBILITY_HEADER = '%s/vnd.elasticsearch+%s; compatible-with=8';
3333

3434
const SEARCH_ENDPOINTS = [

src/Endpoints/AsyncSearch.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ public function status(array $params = [])
152152
* index: list, // A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices
153153
* wait_for_completion_timeout: time, // Specify the time that the request should block waiting for the final response
154154
* keep_on_completion: boolean, // Control whether the response should be stored in the cluster if it completed within the provided [wait_for_completion] time (default: false)
155-
* keep_alive: time, // Update the time interval in which the results (partial or final) for this search will be available
156155
* batched_reduce_size: number, // The number of shard results that should be reduced at once on the coordinating node. This value should be used as the granularity at which progress results will be made available.
157156
* request_cache: boolean, // Specify if request cache should be used for this request or not, defaults to true
158157
* analyzer: string, // The analyzer to use for the query string
159158
* analyze_wildcard: boolean, // Specify whether wildcard and prefix queries should be analyzed (default: false)
159+
* ccs_minimize_roundtrips: boolean, // When doing a cross-cluster search, setting it to true may improve overall search latency, particularly when searching clusters with a large number of shards. However, when set to true, the progress of searches on the remote clusters will not be received until the search finishes on all clusters.
160160
* default_operator: enum, // The default operator for query string query (AND or OR)
161161
* df: string, // The field to use as default where no field prefix is given in the query string
162162
* explain: boolean, // Specify whether to return detailed information about score computation as part of a hit
@@ -169,6 +169,7 @@ public function status(array $params = [])
169169
* expand_wildcards: enum, // Whether to expand wildcard expression to concrete indices that are open, closed or both.
170170
* lenient: boolean, // Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
171171
* preference: string, // Specify the node or shard the operation should be performed on (default: random)
172+
* rest_total_hits_as_int: boolean, // Indicates whether hits.total should be rendered as an integer or an object in the rest search response
172173
* q: string, // Query in the Lucene query string syntax
173174
* routing: list, // A comma-separated list of specific routing values
174175
* search_type: enum, // Search operation type
@@ -214,7 +215,7 @@ public function submit(array $params = [])
214215
$url = '/_async_search';
215216
$method = 'POST';
216217
}
217-
$url = $this->addQueryString($url, $params, ['wait_for_completion_timeout','keep_on_completion','keep_alive','batched_reduce_size','request_cache','analyzer','analyze_wildcard','default_operator','df','explain','stored_fields','docvalue_fields','from','ignore_unavailable','ignore_throttled','allow_no_indices','expand_wildcards','lenient','preference','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']);
218+
$url = $this->addQueryString($url, $params, ['wait_for_completion_timeout','keep_on_completion','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']);
218219
$headers = [
219220
'Accept' => 'application/json',
220221
'Content-Type' => 'application/json',

src/Endpoints/Indices.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1667,6 +1667,7 @@ public function putDataLifecycle(array $params = [])
16671667
$url = $this->addQueryString($url, $params, ['expand_wildcards','timeout','master_timeout','pretty','human','error_trace','source','filter_path']);
16681668
$headers = [
16691669
'Accept' => 'application/json',
1670+
'Content-Type' => 'application/json',
16701671
];
16711672
$request = $this->createRequest($method, $url, $headers, $params['body'] ?? null);
16721673
$request = $this->addOtelAttributes($params, ['name'], $request, 'indices.put_data_lifecycle');

src/Traits/ClientEndpointsTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1237,6 +1237,7 @@ public function mtermvectors(array $params = [])
12371237
* ignore_unavailable: boolean, // Whether specified concrete indices should be ignored when unavailable (missing or closed)
12381238
* expand_wildcards: enum, // Whether to expand wildcard expression to concrete indices that are open, closed or both.
12391239
* keep_alive: string, // Specific the time to live for the point in time
1240+
* allow_partial_search_results: boolean, // Specify whether to tolerate shards missing when creating the point-in-time, or otherwise throw an exception. (default: false)
12401241
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
12411242
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
12421243
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -1258,7 +1259,7 @@ public function openPointInTime(array $params = [])
12581259
$url = '/' . $this->encode($params['index']) . '/_pit';
12591260
$method = 'POST';
12601261

1261-
$url = $this->addQueryString($url, $params, ['preference','routing','ignore_unavailable','expand_wildcards','keep_alive','pretty','human','error_trace','source','filter_path']);
1262+
$url = $this->addQueryString($url, $params, ['preference','routing','ignore_unavailable','expand_wildcards','keep_alive','allow_partial_search_results','pretty','human','error_trace','source','filter_path']);
12621263
$headers = [
12631264
'Accept' => 'application/json',
12641265
'Content-Type' => 'application/json',

0 commit comments

Comments
 (0)