You are here

public function StandardSolrCloudConnector::pingCollection in Search API Solr 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/SolrConnector/StandardSolrCloudConnector.php \Drupal\search_api_solr\Plugin\SolrConnector\StandardSolrCloudConnector::pingCollection()
  2. 4.x src/Plugin/SolrConnector/StandardSolrCloudConnector.php \Drupal\search_api_solr\Plugin\SolrConnector\StandardSolrCloudConnector::pingCollection()

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

Return value

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

Overrides SolrCloudConnectorInterface::pingCollection

File

src/Plugin/SolrConnector/StandardSolrCloudConnector.php, line 91

Class

StandardSolrCloudConnector
Standard Solr Cloud connector.

Namespace

Drupal\search_api_solr\Plugin\SolrConnector

Code

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