You are here

public function SearchApiQuery::getIndex in Search API 8

Retrieves the index associated with this search.

Return value

\Drupal\search_api\IndexInterface The search index this query should be executed on.

See also

\Drupal\search_api\Query\QueryInterface::getIndex()

File

src/Plugin/views/query/SearchApiQuery.php, line 1332

Class

SearchApiQuery
Defines a Views query class for searching on Search API indexes.

Namespace

Drupal\search_api\Plugin\views\query

Code

public function getIndex() {
  return $this->index;
}