indicesManager() публичный Метод

public indicesManager ( ) : IndicesManager
Результат ElasticSearcher\Managers\IndicesManager
Пример #1
0
 /**
  * @param array $indices
  */
 protected function searchInIndices(array $indices)
 {
     foreach ($indices as $index) {
         $index = $this->searcher->indicesManager()->getRegistered($index);
         $this->indices[] = $index->getName();
     }
     // Remove doubles.
     $this->indices = array_unique($this->indices);
 }
Пример #2
0
<?php

require '../tests/bootstrap.php';
use ElasticSearcher\Environment;
use ElasticSearcher\ElasticSearcher;
$env = new Environment(['hosts' => [ELASTICSEARCH_HOST]]);
$searcher = new ElasticSearcher($env);
// Register indexes.
$moviesIndex = new MoviesIndex();
$searcher->indicesManager()->register($moviesIndex);