You are here

public function SearchApiServiceInterface::addIndex in Search API 7

Adds a new index to this server.

If the index was already added to the server, the object should treat this as if removeIndex() and then addIndex() were called.

Parameters

SearchApiIndex $index: The index to add.

Throws

SearchApiException If an error occurred while adding the index.

2 methods override SearchApiServiceInterface::addIndex()
SearchApiAbstractService::addIndex in includes/service.inc
Implements SearchApiServiceInterface::__construct().
SearchApiDummyService::addIndex in tests/search_api_test_2.module
Adds a new index to this server.

File

includes/service.inc, line 150
Contains SearchApiServiceInterface and SearchApiAbstractService.

Class

SearchApiServiceInterface
Interface defining the methods search services have to implement.

Code

public function addIndex(SearchApiIndex $index);