Skip to content

Commit be31f31

Browse files
committed
New endpoints for 7.6.0 release
1 parent 051bddc commit be31f31

File tree

139 files changed

+297
-151
lines changed

Some content is hidden

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

139 files changed

+297
-151
lines changed

src/Elasticsearch/Client.php

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
*/
3333
class Client
3434
{
35-
const VERSION = '7.5.1';
35+
const VERSION = '7.6.0';
3636

3737
/**
3838
* @var Transport
@@ -116,7 +116,7 @@ public function __construct(Transport $transport, callable $endpoint, array $reg
116116
* $params['index'] = (string) Default index for items which don't provide one
117117
* $params['type'] = DEPRECATED (string) Default document type for items which don't provide one
118118
* $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)
120120
* $params['routing'] = (string) Specific routing value
121121
* $params['timeout'] = (time) Explicit operation timeout
122122
* $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 = [])
242242
* $params['index'] = (string) The name of the index (Required)
243243
* $params['type'] = DEPRECATED (string) The type of the document
244244
* $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)
246246
* $params['routing'] = (string) Specific routing value
247247
* $params['timeout'] = (time) Explicit operation timeout
248248
* $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 = [])
552552

553553
return $this->performRequest($endpoint);
554554
}
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+
public function getScriptContext(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
578+
*
579+
*/
580+
public function getScriptLanguages(array $params = [])
581+
{
582+
583+
$endpointBuilder = $this->endpoints;
584+
$endpoint = $endpointBuilder('GetScriptLanguages');
585+
$endpoint->setParams($params);
586+
587+
return $this->performRequest($endpoint);
588+
}
555589
/**
556590
* $params['id'] = (string) The document ID (Required)
557591
* $params['index'] = (string) The name of the index (Required)
@@ -813,6 +847,7 @@ public function putScript(array $params = [])
813847
* $params['ignore_unavailable'] = (boolean) Whether specified concrete indices should be ignored when unavailable (missing or closed)
814848
* $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)
815849
* $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)
816851
* $params['body'] = (array) The ranking evaluation search definition, including search requests, document ratings and ranking metric definition. (Required)
817852
*
818853
* @param array $params Associative array of parameters
@@ -836,7 +871,7 @@ public function rankEval(array $params = [])
836871
return $this->performRequest($endpoint);
837872
}
838873
/**
839-
* $params['refresh'] = (boolean) Should the effected indexes be refreshed?
874+
* $params['refresh'] = (boolean) Should the affected indexes be refreshed?
840875
* $params['timeout'] = (time) Time each individual bulk request should wait for shards that are unavailable. (Default = 1m)
841876
* $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)
842877
* $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 = [])
11181153
* $params['_source_excludes'] = (list) A list of fields to exclude from the returned _source field
11191154
* $params['_source_includes'] = (list) A list of fields to extract and return from the _source field
11201155
* $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)
11221157
* $params['retry_on_conflict'] = (number) Specify how many times should the operation be retried when a conflict occurs (default: 0)
11231158
* $params['routing'] = (string) Specific routing value
11241159
* $params['timeout'] = (time) Explicit operation timeout
@@ -1178,7 +1213,7 @@ public function update(array $params = [])
11781213
* $params['version'] = (boolean) Specify whether to return document version as part of a hit
11791214
* $params['version_type'] = (boolean) Should the document increment the version number (internal) on hit or not (reindex)
11801215
* $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?
11821217
* $params['timeout'] = (time) Time each individual bulk request should wait for shards that are unavailable. (Default = 1m)
11831218
* $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)
11841219
* $params['scroll_size'] = (number) Size on the scroll request powering the update by query

src/Elasticsearch/Endpoints/Bulk.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* Class Bulk
1313
* Elasticsearch API name bulk
14-
* Generated running $ php util/GenerateEndpoints.php 7.5.0
14+
* Generated running $ php util/GenerateEndpoints.php 7.6.0
1515
*
1616
* @category Elasticsearch
1717
* @package Elasticsearch\Endpoints
@@ -82,4 +82,5 @@ public function setBody($body): Bulk
8282
}
8383
return $this;
8484
}
85+
8586
}

src/Elasticsearch/Endpoints/Cat/Aliases.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Class Aliases
1010
* Elasticsearch API name cat.aliases
11-
* Generated running $ php util/GenerateEndpoints.php 7.5.0
11+
* Generated running $ php util/GenerateEndpoints.php 7.6.0
1212
*
1313
* @category Elasticsearch
1414
* @package Elasticsearch\Endpoints\Cat

src/Elasticsearch/Endpoints/Cat/Allocation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Class Allocation
1010
* Elasticsearch API name cat.allocation
11-
* Generated running $ php util/GenerateEndpoints.php 7.5.0
11+
* Generated running $ php util/GenerateEndpoints.php 7.6.0
1212
*
1313
* @category Elasticsearch
1414
* @package Elasticsearch\Endpoints\Cat

src/Elasticsearch/Endpoints/Cat/Count.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Class Count
1010
* Elasticsearch API name cat.count
11-
* Generated running $ php util/GenerateEndpoints.php 7.5.0
11+
* Generated running $ php util/GenerateEndpoints.php 7.6.0
1212
*
1313
* @category Elasticsearch
1414
* @package Elasticsearch\Endpoints\Cat

src/Elasticsearch/Endpoints/Cat/Fielddata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Class Fielddata
1010
* Elasticsearch API name cat.fielddata
11-
* Generated running $ php util/GenerateEndpoints.php 7.5.0
11+
* Generated running $ php util/GenerateEndpoints.php 7.6.0
1212
*
1313
* @category Elasticsearch
1414
* @package Elasticsearch\Endpoints\Cat

src/Elasticsearch/Endpoints/Cat/Health.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Class Health
1010
* Elasticsearch API name cat.health
11-
* Generated running $ php util/GenerateEndpoints.php 7.5.0
11+
* Generated running $ php util/GenerateEndpoints.php 7.6.0
1212
*
1313
* @category Elasticsearch
1414
* @package Elasticsearch\Endpoints\Cat

src/Elasticsearch/Endpoints/Cat/Help.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Class Help
1010
* Elasticsearch API name cat.help
11-
* Generated running $ php util/GenerateEndpoints.php 7.5.0
11+
* Generated running $ php util/GenerateEndpoints.php 7.6.0
1212
*
1313
* @category Elasticsearch
1414
* @package Elasticsearch\Endpoints\Cat

src/Elasticsearch/Endpoints/Cat/Indices.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Class Indices
1010
* Elasticsearch API name cat.indices
11-
* Generated running $ php util/GenerateEndpoints.php 7.5.0
11+
* Generated running $ php util/GenerateEndpoints.php 7.6.0
1212
*
1313
* @category Elasticsearch
1414
* @package Elasticsearch\Endpoints\Cat

src/Elasticsearch/Endpoints/Cat/Master.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Class Master
1010
* Elasticsearch API name cat.master
11-
* Generated running $ php util/GenerateEndpoints.php 7.5.0
11+
* Generated running $ php util/GenerateEndpoints.php 7.6.0
1212
*
1313
* @category Elasticsearch
1414
* @package Elasticsearch\Endpoints\Cat

0 commit comments

Comments
 (0)