public function listIndexes() { return $this->request($this->context, 'GET', '/1/indexes/', null, null, $this->context->readHostsArray, $this->context->connectTimeout, $this->context->readTimeout); }
/** * Index Exists. * * Does this index exist? * * @return bool */ public function indexExists() { foreach (Arr::get($this->client->listIndexes(), 'items', []) as $index) { if ($index['name'] == $this->getConfigurator()->index()) { return true; } } return false; }