Skip to content

Commit

Permalink
Updated endpoints to 8.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ezimuel committed Dec 18, 2024
1 parent ab0fdb4 commit 6cd0fe6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
final class Client implements ClientInterface
{
const CLIENT_NAME = 'es';
const VERSION = '8.16.0';
const VERSION = '8.17.0';
const API_COMPATIBILITY_HEADER = '%s/vnd.elasticsearch+%s; compatible-with=8';

const SEARCH_ENDPOINTS = [
Expand Down
5 changes: 3 additions & 2 deletions src/Endpoints/AsyncSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ public function status(array $params = [])
* index: list, // A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices
* wait_for_completion_timeout: time, // Specify the time that the request should block waiting for the final response
* 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)
* keep_alive: time, // Update the time interval in which the results (partial or final) for this search will be available
* 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.
* request_cache: boolean, // Specify if request cache should be used for this request or not, defaults to true
* analyzer: string, // The analyzer to use for the query string
* analyze_wildcard: boolean, // Specify whether wildcard and prefix queries should be analyzed (default: false)
* 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.
* default_operator: enum, // The default operator for query string query (AND or OR)
* df: string, // The field to use as default where no field prefix is given in the query string
* explain: boolean, // Specify whether to return detailed information about score computation as part of a hit
Expand All @@ -169,6 +169,7 @@ public function status(array $params = [])
* expand_wildcards: enum, // Whether to expand wildcard expression to concrete indices that are open, closed or both.
* lenient: boolean, // 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)
* rest_total_hits_as_int: boolean, // 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: list, // A comma-separated list of specific routing values
* search_type: enum, // Search operation type
Expand Down Expand Up @@ -214,7 +215,7 @@ public function submit(array $params = [])
$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','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']);
$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']);
$headers = [
'Accept' => 'application/json',
'Content-Type' => 'application/json',
Expand Down
1 change: 1 addition & 0 deletions src/Endpoints/Indices.php
Original file line number Diff line number Diff line change
Expand Up @@ -1667,6 +1667,7 @@ public function putDataLifecycle(array $params = [])
$url = $this->addQueryString($url, $params, ['expand_wildcards','timeout','master_timeout','pretty','human','error_trace','source','filter_path']);
$headers = [
'Accept' => 'application/json',
'Content-Type' => 'application/json',
];
$request = $this->createRequest($method, $url, $headers, $params['body'] ?? null);
$request = $this->addOtelAttributes($params, ['name'], $request, 'indices.put_data_lifecycle');
Expand Down
3 changes: 2 additions & 1 deletion src/Traits/ClientEndpointsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,7 @@ public function mtermvectors(array $params = [])
* ignore_unavailable: boolean, // Whether specified concrete indices should be ignored when unavailable (missing or closed)
* expand_wildcards: enum, // Whether to expand wildcard expression to concrete indices that are open, closed or both.
* keep_alive: string, // Specific the time to live for the point in time
* allow_partial_search_results: boolean, // Specify whether to tolerate shards missing when creating the point-in-time, or otherwise throw an exception. (default: false)
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
Expand All @@ -1258,7 +1259,7 @@ public function openPointInTime(array $params = [])
$url = '/' . $this->encode($params['index']) . '/_pit';
$method = 'POST';

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

0 comments on commit 6cd0fe6

Please sign in to comment.