protected function SearchApiAcquiaSearchService::connect in Acquia Search for Search API 7
Same name and namespace in other branches
- 7.2 includes/SearchApiAcquiaSearchService.php \SearchApiAcquiaSearchService::connect()
Overrides SearchApiSolrService::connect().
Overrides SearchApiSolrService::connect
File
- includes/
SearchApiAcquiaSearchService.php, line 16 - Contains SearchApiAcquiaSearchService.
Class
- SearchApiAcquiaSearchService
- Search API service class for Acquia Search.
Code
protected function connect() {
if (!$this->solr) {
if (!class_exists('Apache_Solr_Service')) {
throw new Exception(t('SolrPhpClient library not found! Please follow the instructions in search_api_solr/INSTALL.txt for installing the Solr search module.'));
}
// Set our special overrides if applicable
$this
->setConnectionOptions();
// Set the solr connection object.
$this->solr = new SearchApiAcquiaSearchConnection($this->options);
}
}