Skip to content

Commit 28bf0ed

Browse files
committed
Updated API to ES 7.9
1 parent 0dc6475 commit 28bf0ed

File tree

375 files changed

+1325
-395
lines changed

Some content is hidden

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

375 files changed

+1325
-395
lines changed

src/Elasticsearch/Client.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Elasticsearch\Namespaces\BooleanRequestWrapper;
1616
use Elasticsearch\Namespaces\CatNamespace;
1717
use Elasticsearch\Namespaces\ClusterNamespace;
18+
use Elasticsearch\Namespaces\DanglingIndicesNamespace;
1819
use Elasticsearch\Namespaces\IndicesNamespace;
1920
use Elasticsearch\Namespaces\IngestNamespace;
2021
use Elasticsearch\Namespaces\NodesNamespace;
@@ -44,7 +45,7 @@
4445

4546
/**
4647
* Class Client
47-
* Generated running $ php util/GenerateEndpoints.php 7.8
48+
* Generated running $ php util/GenerateEndpoints.php 7.9
4849
*
4950
* @category Elasticsearch
5051
* @package Elasticsearch
@@ -54,7 +55,7 @@
5455
*/
5556
class Client
5657
{
57-
const VERSION = '7.8';
58+
const VERSION = '7.9';
5859

5960
/**
6061
* @var Transport
@@ -86,6 +87,11 @@ class Client
8687
*/
8788
protected $cluster;
8889

90+
/**
91+
* @var DanglingIndicesNamespace
92+
*/
93+
protected $danglingIndices;
94+
8995
/**
9096
* @var IndicesNamespace
9197
*/
@@ -230,6 +236,7 @@ public function __construct(Transport $transport, callable $endpoint, array $reg
230236
$this->endpoints = $endpoint;
231237
$this->cat = new CatNamespace($transport, $endpoint);
232238
$this->cluster = new ClusterNamespace($transport, $endpoint);
239+
$this->danglingIndices = new DanglingIndicesNamespace($transport, $endpoint);
233240
$this->indices = new IndicesNamespace($transport, $endpoint);
234241
$this->ingest = new IngestNamespace($transport, $endpoint);
235242
$this->nodes = new NodesNamespace($transport, $endpoint);
@@ -632,6 +639,7 @@ public function explain(array $params = [])
632639
* $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)
633640
* $params['expand_wildcards'] = (enum) Whether to expand wildcard expression to concrete indices that are open, closed or both. (Options = open,closed,hidden,none,all) (Default = open)
634641
* $params['include_unmapped'] = (boolean) Indicates whether unmapped fields should be included in the response. (Default = false)
642+
* $params['body'] = (array) An index filter specified with the Query DSL
635643
*
636644
* @param array $params Associative array of parameters
637645
* @return array
@@ -640,11 +648,13 @@ public function explain(array $params = [])
640648
public function fieldCaps(array $params = [])
641649
{
642650
$index = $this->extractArgument($params, 'index');
651+
$body = $this->extractArgument($params, 'body');
643652

644653
$endpointBuilder = $this->endpoints;
645654
$endpoint = $endpointBuilder('FieldCaps');
646655
$endpoint->setParams($params);
647656
$endpoint->setIndex($index);
657+
$endpoint->setBody($body);
648658

649659
return $this->performRequest($endpoint);
650660
}
@@ -1421,6 +1431,10 @@ public function cluster(): ClusterNamespace
14211431
{
14221432
return $this->cluster;
14231433
}
1434+
public function danglingIndices(): DanglingIndicesNamespace
1435+
{
1436+
return $this->danglingIndices;
1437+
}
14241438
public function indices(): IndicesNamespace
14251439
{
14261440
return $this->indices;

src/Elasticsearch/Endpoints/AsyncSearch/Delete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* Class Delete
1111
* Elasticsearch API name async_search.delete
12-
* Generated running $ php util/GenerateEndpoints.php 7.8
12+
* Generated running $ php util/GenerateEndpoints.php 7.9
1313
*
1414
* @category Elasticsearch
1515
* @package Elasticsearch\Endpoints\AsyncSearch

src/Elasticsearch/Endpoints/AsyncSearch/Get.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* Class Get
1111
* Elasticsearch API name async_search.get
12-
* Generated running $ php util/GenerateEndpoints.php 7.8
12+
* Generated running $ php util/GenerateEndpoints.php 7.9
1313
*
1414
* @category Elasticsearch
1515
* @package Elasticsearch\Endpoints\AsyncSearch

src/Elasticsearch/Endpoints/AsyncSearch/Submit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Class Submit
1010
* Elasticsearch API name async_search.submit
11-
* Generated running $ php util/GenerateEndpoints.php 7.8
11+
* Generated running $ php util/GenerateEndpoints.php 7.9
1212
*
1313
* @category Elasticsearch
1414
* @package Elasticsearch\Endpoints\AsyncSearch

src/Elasticsearch/Endpoints/Autoscaling/DeleteAutoscalingPolicy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* Class DeleteAutoscalingPolicy
1111
* Elasticsearch API name autoscaling.delete_autoscaling_policy
12-
* Generated running $ php util/GenerateEndpoints.php 7.8
12+
* Generated running $ php util/GenerateEndpoints.php 7.9
1313
*
1414
* @category Elasticsearch
1515
* @package Elasticsearch\Endpoints\Autoscaling

src/Elasticsearch/Endpoints/Autoscaling/GetAutoscalingDecision.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Class GetAutoscalingDecision
1010
* Elasticsearch API name autoscaling.get_autoscaling_decision
11-
* Generated running $ php util/GenerateEndpoints.php 7.8
11+
* Generated running $ php util/GenerateEndpoints.php 7.9
1212
*
1313
* @category Elasticsearch
1414
* @package Elasticsearch\Endpoints\Autoscaling

src/Elasticsearch/Endpoints/Autoscaling/GetAutoscalingPolicy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* Class GetAutoscalingPolicy
1111
* Elasticsearch API name autoscaling.get_autoscaling_policy
12-
* Generated running $ php util/GenerateEndpoints.php 7.8
12+
* Generated running $ php util/GenerateEndpoints.php 7.9
1313
*
1414
* @category Elasticsearch
1515
* @package Elasticsearch\Endpoints\Autoscaling

src/Elasticsearch/Endpoints/Autoscaling/PutAutoscalingPolicy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* Class PutAutoscalingPolicy
1111
* Elasticsearch API name autoscaling.put_autoscaling_policy
12-
* Generated running $ php util/GenerateEndpoints.php 7.8
12+
* Generated running $ php util/GenerateEndpoints.php 7.9
1313
*
1414
* @category Elasticsearch
1515
* @package Elasticsearch\Endpoints\Autoscaling

src/Elasticsearch/Endpoints/Bulk.php

Lines changed: 1 addition & 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.8
14+
* Generated running $ php util/GenerateEndpoints.php 7.9
1515
*
1616
* @category Elasticsearch
1717
* @package Elasticsearch\Endpoints

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.8
11+
* Generated running $ php util/GenerateEndpoints.php 7.9
1212
*
1313
* @category Elasticsearch
1414
* @package Elasticsearch\Endpoints\Cat

0 commit comments

Comments
 (0)