You are here

public function SearchApiAcquiaPreferredCore::getPreferredCoreUrl in Acquia Search for Search API 7.2

Returns preferred core url.

Return value

string Absolute URL to solr search core.

File

includes/v3/SearchApiAcquiaPreferredCore.php, line 193

Class

SearchApiAcquiaPreferredCore
Class SearchApiAcquiaPreferredCore.

Code

public function getPreferredCoreUrl() {
  $core = $this
    ->getPreferredCore();
  if (empty($core)) {
    return NULL;
  }
  return sprintf('https://%s/solr/%s', $core['host'], $core['index_id']);
}