You are here

public function Solr36Connector::pingServer in Search API Solr 4.x

Pings the Solr server to tell whether it can be accessed.

Return value

mixed The latency in milliseconds if the core can be accessed, otherwise FALSE.

Throws

\Drupal\search_api_solr\SearchApiSolrException

Overrides SolrConnectorPluginBase::pingServer

File

modules/search_api_solr_legacy/src/Plugin/SolrConnector/Solr36Connector.php, line 85

Class

Solr36Connector
Class Solr36Connector.

Namespace

Drupal\search_api_solr_legacy\Plugin\SolrConnector

Code

public function pingServer() {
  return $this
    ->pingCore();
}