You are here

public function SearchApiSolrService::addIndex in Search API Solr 7

Implements SearchApiServiceInterface::__construct().

Does nothing, by default.

Overrides SearchApiAbstractService::addIndex

File

includes/service.inc, line 559

Class

SearchApiSolrService
Search service class using Solr server.

Code

public function addIndex(SearchApiIndex $index) {
  if (module_exists('search_api_multi') && module_exists('search_api_views')) {
    views_invalidate_cache();
  }
}