You are here

public function Query::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.

Overrides QueryInterface::getIndex

File

src/Query/Query.php, line 650

Class

Query
Provides a standard implementation for a Search API query.

Namespace

Drupal\search_api\Query

Code

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