You are here

public function SearchApiMultiViewsQuery::getIndexes in Search API Multi-Index Searches 7

Retrieves the searched indexes.

Return value

SearchApiIndex[] An array of SearchApiIndex objects representing all indexes that will be used for this search, keyed by machine names.

2 calls to SearchApiMultiViewsQuery::getIndexes()
SearchApiMultiViewsQuery::addResults in views/query.inc
Helper function for adding results to a view in the format expected by the view.
SearchApiMultiViewsQuery::get_result_wrappers in views/query.inc
Returns the according metadata wrappers for the given query results.

File

views/query.inc, line 211

Class

SearchApiMultiViewsQuery
Views query class using a Search API index as the data source.

Code

public function getIndexes() {
  if (!$this->errors) {
    return $this->query
      ->getIndexes();
  }
  return array();
}