You are here

protected function SearchApiElasticsearchConnector::getIndexes in Elasticsearch Connector 7.2

Same name and namespace in other branches
  1. 7.5 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::getIndexes()
  2. 7 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::getIndexes()

Get all the indexes for this specific server.

1 call to SearchApiElasticsearchConnector::getIndexes()
SearchApiElasticsearchConnector::deleteItems in modules/elasticsearch_connector_search_api/service.inc
Overrides deleteItems().

File

modules/elasticsearch_connector_search_api/service.inc, line 558
Provides a Elasticsearch-based service class for the Search API using Elasticsearch Connector module.

Class

SearchApiElasticsearchConnector
Search service class.

Code

protected function getIndexes() {
  $server_indices = array();
  $indices = search_api_index_load_multiple(FALSE);
  foreach ($indices as $index) {
    if ($index->server == $this->server->machine_name) {
      $server_indices[] = $index;
    }
  }
  return $server_indices;
}