You are here

public function SolrConnectorPluginBase::getCoreInfo in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getCoreInfo()
  2. 8 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getCoreInfo()
  3. 8.2 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getCoreInfo()

Gets information about the Solr Core.

Parameters

bool $reset: If TRUE the server will be asked regardless if a previous call is cached.

Return value

object A response object with system information.

Throws

\Drupal\search_api_solr\SearchApiSolrException

Overrides SolrConnectorInterface::getCoreInfo

3 calls to SolrConnectorPluginBase::getCoreInfo()
Solr36Connector::getServerInfo in modules/search_api_solr_legacy/src/Plugin/SolrConnector/Solr36Connector.php
Gets information about the Solr server.
SolrConnectorPluginBase::getSolrVersion in src/SolrConnector/SolrConnectorPluginBase.php
Gets the current Solr version.
StandardSolrCloudConnector::getCollectionInfo in src/Plugin/SolrConnector/StandardSolrCloudConnector.php
Gets information about the Solr Collection.

File

src/SolrConnector/SolrConnectorPluginBase.php, line 500

Class

SolrConnectorPluginBase
Defines a base class for Solr connector plugins.

Namespace

Drupal\search_api_solr\SolrConnector

Code

public function getCoreInfo($reset = FALSE) {
  $this
    ->useTimeout();
  return $this
    ->getDataFromHandler($this->configuration['core'] . '/admin/system', $reset);
}