You are here

public function PreferredSearchCoreService::getPreferredCoreUrl in Acquia Search 2.x

Returns URL for the preferred search core.

Return value

string URL string, e.g. http://useast1-c1.acquia-search.com/solr/WXYZ-12345.dev.mysitedev

File

src/PreferredSearchCoreService.php, line 207

Class

PreferredSearchCoreService
Serivce to check for preferred search core.

Namespace

Drupal\acquia_search

Code

public function getPreferredCoreUrl() {
  $core = $this
    ->getPreferredCore();
  return 'http://' . $core['balancer'] . '/solr/' . $core['core_id'];
}