You are here

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

Overrides SearchApiServiceInterface::addIndex

File

tests/search_api_test_2.module, line 97
Provides a second test service and server for testing Search API.

Class

SearchApiDummyService
Dummy service for testing.

Code

public function addIndex(SearchApiIndex $index) {
}