You are here

protected function SearchApiSolrConnection::sendRawGet in Search API Solr 7

Sends a GET request to the Solr server.

Parameters

string $url: The URL to which the request should be sent.

array $options: Additional options for the request, as recognized by drupal_http_request().

Return value

object The HTTP response, as returned by drupal_http_request().

Throws

SearchApiException If an error occurs, either during sending or on the server side.

4 calls to SearchApiSolrConnection::sendRawGet()
SearchApiSolrConnection::search in includes/solr_connection.inc
Executes a search on the Solr server.
SearchApiSolrConnection::setLuke in includes/solr_connection.inc
Sets $this->luke with the metadata about the index from admin/luke.
SearchApiSolrConnection::setStats in includes/solr_connection.inc
Stores information about the Solr core in $this->stats.
SearchApiSolrConnection::setSystemInfo in includes/solr_connection.inc
Call the /admin/system servlet to retrieve system information.

File

includes/solr_connection.inc, line 583

Class

SearchApiSolrConnection
Represents a Solr server resource.

Code

protected function sendRawGet($url, array $options = array()) {
  $options['method'] = 'GET';
  $response = $this
    ->makeHttpRequest($url, $options);
  return $this
    ->checkResponse($response);
}