diff --git a/src/module-elasticsuite-core/Api/Client/ClientInterface.php b/src/module-elasticsuite-core/Api/Client/ClientInterface.php index 25c747e5f..9896b34c2 100644 --- a/src/module-elasticsuite-core/Api/Client/ClientInterface.php +++ b/src/module-elasticsuite-core/Api/Client/ClientInterface.php @@ -37,6 +37,13 @@ public function info(); */ public function nodes(); + /** + * Returns cluster information. + * + * @return mixed + */ + public function cluster(); + /** * Try to connect the server and returns : * - true if succeed diff --git a/src/module-elasticsuite-core/Client/Client.php b/src/module-elasticsuite-core/Client/Client.php index bad174a18..60518262a 100644 --- a/src/module-elasticsuite-core/Client/Client.php +++ b/src/module-elasticsuite-core/Client/Client.php @@ -72,6 +72,14 @@ public function nodes() return $this->getEsClient()->nodes(); } + /** + * {@inheritDoc} + */ + public function cluster() + { + return $this->getEsClient()->cluster(); + } + /** * {@inheritDoc} */