You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Elasticsearch/Client.php
+41-6Lines changed: 41 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@
32
32
*/
33
33
class Client
34
34
{
35
-
constVERSION = '7.5.1';
35
+
constVERSION = '7.6.0';
36
36
37
37
/**
38
38
* @var Transport
@@ -116,7 +116,7 @@ public function __construct(Transport $transport, callable $endpoint, array $reg
116
116
* $params['index'] = (string) Default index for items which don't provide one
117
117
* $params['type'] = DEPRECATED (string) Default document type for items which don't provide one
118
118
* $params['wait_for_active_shards'] = (string) Sets the number of shard copies that must be active before proceeding with the bulk operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
119
-
* $params['refresh'] = (enum) If `true` then refresh the effected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes. (Options = true,false,wait_for)
119
+
* $params['refresh'] = (enum) If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes. (Options = true,false,wait_for)
120
120
* $params['routing'] = (string) Specific routing value
* $params['_source'] = (list) True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request
@@ -242,7 +242,7 @@ public function create(array $params = [])
242
242
* $params['index'] = (string) The name of the index (Required)
243
243
* $params['type'] = DEPRECATED (string) The type of the document
244
244
* $params['wait_for_active_shards'] = (string) Sets the number of shard copies that must be active before proceeding with the delete operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
245
-
* $params['refresh'] = (enum) If `true` then refresh the effected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes. (Options = true,false,wait_for)
245
+
* $params['refresh'] = (enum) If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes. (Options = true,false,wait_for)
246
246
* $params['routing'] = (string) Specific routing value
* $params['if_seq_no'] = (number) only perform the delete operation if the last operation that has changed the document has the specified sequence number
@@ -552,6 +552,40 @@ public function getScript(array $params = [])
552
552
553
553
return$this->performRequest($endpoint);
554
554
}
555
+
/**
556
+
*
557
+
* @param array $params Associative array of parameters
558
+
* @return array
559
+
*
560
+
* @note This API is EXPERIMENTAL and may be changed or removed completely in a future release
561
+
*
562
+
*/
563
+
publicfunctiongetScriptContext(array$params = [])
564
+
{
565
+
566
+
$endpointBuilder = $this->endpoints;
567
+
$endpoint = $endpointBuilder('GetScriptContext');
568
+
$endpoint->setParams($params);
569
+
570
+
return$this->performRequest($endpoint);
571
+
}
572
+
/**
573
+
*
574
+
* @param array $params Associative array of parameters
575
+
* @return array
576
+
*
577
+
* @note This API is EXPERIMENTAL and may be changed or removed completely in a future release
* $params['id'] = (string) The document ID (Required)
557
591
* $params['index'] = (string) The name of the index (Required)
@@ -813,6 +847,7 @@ public function putScript(array $params = [])
813
847
* $params['ignore_unavailable'] = (boolean) Whether specified concrete indices should be ignored when unavailable (missing or closed)
814
848
* $params['allow_no_indices'] = (boolean) Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
815
849
* $params['expand_wildcards'] = (enum) Whether to expand wildcard expression to concrete indices that are open, closed or both. (Options = open,closed,none,all) (Default = open)
850
+
* $params['search_type'] = (enum) Search operation type (Options = query_then_fetch,dfs_query_then_fetch)
816
851
* $params['body'] = (array) The ranking evaluation search definition, including search requests, document ratings and ranking metric definition. (Required)
817
852
*
818
853
* @param array $params Associative array of parameters
@@ -836,7 +871,7 @@ public function rankEval(array $params = [])
836
871
return$this->performRequest($endpoint);
837
872
}
838
873
/**
839
-
* $params['refresh'] = (boolean) Should the effected indexes be refreshed?
874
+
* $params['refresh'] = (boolean) Should the affected indexes be refreshed?
840
875
* $params['timeout'] = (time) Time each individual bulk request should wait for shards that are unavailable. (Default = 1m)
841
876
* $params['wait_for_active_shards'] = (string) Sets the number of shard copies that must be active before proceeding with the reindex operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
842
877
* $params['wait_for_completion'] = (boolean) Should the request should block until the reindex is complete. (Default = true)
@@ -1118,7 +1153,7 @@ public function termvectors(array $params = [])
1118
1153
* $params['_source_excludes'] = (list) A list of fields to exclude from the returned _source field
1119
1154
* $params['_source_includes'] = (list) A list of fields to extract and return from the _source field
1120
1155
* $params['lang'] = (string) The script language (default: painless)
1121
-
* $params['refresh'] = (enum) If `true` then refresh the effected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes. (Options = true,false,wait_for)
1156
+
* $params['refresh'] = (enum) If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes. (Options = true,false,wait_for)
1122
1157
* $params['retry_on_conflict'] = (number) Specify how many times should the operation be retried when a conflict occurs (default: 0)
1123
1158
* $params['routing'] = (string) Specific routing value
@@ -1178,7 +1213,7 @@ public function update(array $params = [])
1178
1213
* $params['version'] = (boolean) Specify whether to return document version as part of a hit
1179
1214
* $params['version_type'] = (boolean) Should the document increment the version number (internal) on hit or not (reindex)
1180
1215
* $params['request_cache'] = (boolean) Specify if request cache should be used for this request or not, defaults to index level setting
1181
-
* $params['refresh'] = (boolean) Should the effected indexes be refreshed?
1216
+
* $params['refresh'] = (boolean) Should the affected indexes be refreshed?
1182
1217
* $params['timeout'] = (time) Time each individual bulk request should wait for shards that are unavailable. (Default = 1m)
1183
1218
* $params['wait_for_active_shards'] = (string) Sets the number of shard copies that must be active before proceeding with the update by query operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
1184
1219
* $params['scroll_size'] = (number) Size on the scroll request powering the update by query
0 commit comments