You are here

public function SearchApiAutocompleteSearch::index in Search API Autocomplete 7

Return value

SearchApiIndex The index this search belongs to.

3 calls to SearchApiAutocompleteSearch::index()
SearchApiAutocompleteSearch::getSuggester in ./search_api_autocomplete.entity.php
Retrieves the suggester plugin for this search.
SearchApiAutocompleteSearch::server in ./search_api_autocomplete.entity.php
Retrieves the server this search would at the moment be executed on.
SearchApiAutocompleteSearch::supportsAutocompletion in ./search_api_autocomplete.entity.php
Determines whether autocompletion is currently supported for this search.

File

./search_api_autocomplete.entity.php, line 94
Contains SearchApiAutocompleteSearch.

Class

SearchApiAutocompleteSearch
Describes the autocomplete settings for a certain search.

Code

public function index() {
  if (!isset($this->index)) {
    $this->index = search_api_index_load($this->index_id);
    if (!$this->index) {
      $this->index = FALSE;
    }
  }
  return $this->index;
}