You are here

public function SolrConnectorPluginBase::serverRestGet 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::serverRestGet()
  2. 8 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::serverRestGet()
  3. 8.2 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::serverRestGet()

Sends a REST GET request to the Solr server and returns the result.

Parameters

string $path: The path to append to the base URI.

Return value

string The decoded response.

Throws

\Drupal\search_api_solr\SearchApiSolrException

Overrides SolrConnectorInterface::serverRestGet

1 method overrides SolrConnectorPluginBase::serverRestGet()
Solr36Connector::serverRestGet in modules/search_api_solr_legacy/src/Plugin/SolrConnector/Solr36Connector.php
Sends a REST GET request to the Solr server and returns the result.

File

src/SolrConnector/SolrConnectorPluginBase.php, line 712

Class

SolrConnectorPluginBase
Defines a base class for Solr connector plugins.

Namespace

Drupal\search_api_solr\SolrConnector

Code

public function serverRestGet($path) {
  $this
    ->useTimeout();
  return $this
    ->restRequest($path);
}