You are here

public function SearchApiSolrService::removeIndex in Search API Solr 7

Implements SearchApiServiceInterface::__construct().

By default, removes all items from that index.

Overrides SearchApiAbstractService::removeIndex

File

includes/service.inc, line 589

Class

SearchApiSolrService
Search service class using Solr server.

Code

public function removeIndex($index) {
  if (module_exists('search_api_multi') && module_exists('search_api_views')) {
    views_invalidate_cache();
  }
  parent::removeIndex($index);
}