Пример #1
0
 /**
  * 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;
 }