public function AcquiaSearchSolrPreferredIndex::getPreferredIndexUrl in Acquia Connector 7.3
Returns preferred index url.
Return value
string Absolute URL to solr search index.
File
- acquia_search/
includes/ AcquiaSearchSolrPreferredIndex.php, line 165
Class
- AcquiaSearchSolrPreferredIndex
- Class AcquiaSearchSolrPreferredIndex.
Code
public function getPreferredIndexUrl() {
$index = $this
->getPreferredIndex();
if (empty($index)) {
return NULL;
}
return sprintf('https://%s/solr/%s', $index['host'], $index['index_id']);
}