public function SolrConnectorPluginBase::getServerInfo in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getServerInfo()
- 8 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getServerInfo()
- 8.2 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getServerInfo()
Gets information about the Solr server.
Parameters
bool $reset: If TRUE the server will be asked regardless if a previous call is cached.
Return value
object A response object with server information.
Throws
\Drupal\search_api_solr\SearchApiSolrException
Overrides SolrConnectorInterface::getServerInfo
2 calls to SolrConnectorPluginBase::getServerInfo()
- SolrConnectorPluginBase::getSolrVersion in src/
SolrConnector/ SolrConnectorPluginBase.php - Gets the current Solr version.
- SolrConnectorPluginBase::pingServer in src/
SolrConnector/ SolrConnectorPluginBase.php - Pings the Solr server to tell whether it can be accessed.
1 method overrides SolrConnectorPluginBase::getServerInfo()
- Solr36Connector::getServerInfo in modules/
search_api_solr_legacy/ src/ Plugin/ SolrConnector/ Solr36Connector.php - Gets information about the Solr server.
File
- src/
SolrConnector/ SolrConnectorPluginBase.php, line 492
Class
- SolrConnectorPluginBase
- Defines a base class for Solr connector plugins.
Namespace
Drupal\search_api_solr\SolrConnectorCode
public function getServerInfo($reset = FALSE) {
$this
->useTimeout();
return $this
->getDataFromHandler('admin/info/system', $reset);
}