public function StandardSolrCloudConnector::pingCollection in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/Plugin/SolrConnector/StandardSolrCloudConnector.php \Drupal\search_api_solr\Plugin\SolrConnector\StandardSolrCloudConnector::pingCollection()
- 8.2 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 260
Class
- StandardSolrCloudConnector
- Standard Solr Cloud connector.
Namespace
Drupal\search_api_solr\Plugin\SolrConnectorCode
public function pingCollection() {
return parent::pingCore([
'distrib' => FALSE,
]);
}