You are here

function search_api_index_load in Search API 7

Loads the Search API index with the specified id.

Parameters

$id: The index' id.

$reset: Whether to reset the internal cache.

Return value

SearchApiIndex|false A completely loaded index object, or FALSE if no such index exists.

21 calls to search_api_index_load()
SearchApiQuery::__wakeup in includes/query.inc
Implements the magic __wakeup() method to reload the query's index.
SearchApiUnitTest::checkEntityDatasource in ./search_api.test
Tests the entity datasource controller and its bundle setting.
SearchApiViewsFacetsBlockDisplay::getFieldOptions in contrib/search_api_views/includes/display_facet_block.inc
SearchApiViewsHandlerArgumentFulltext::getFulltextFields in contrib/search_api_views/includes/handler_argument_fulltext.inc
Helper method to get an option list of all available fulltext fields.
SearchApiViewsHandlerArgumentMoreLikeThis::options_form in contrib/search_api_views/includes/handler_argument_more_like_this.inc
Extend the options form a bit.

... See full list

1 string reference to 'search_api_index_load'
search_api_admin_add_index in ./search_api.admin.inc
Form constructor for adding an index.

File

./search_api.module, line 2817
Provides a flexible framework for implementing search services.

Code

function search_api_index_load($id, $reset = FALSE) {
  $ret = search_api_index_load_multiple(array(
    $id,
  ), array(), $reset);
  return reset($ret);
}