protected function _sendRawRequest($url, $method = Request::METHOD_GET, $body = '', \Closure $initializeRequest = null)
    {
        $logSeverity = SolrLogManager::INFO;
        $exception = null;

        try {
            $request = $this->buildSolariumRequestFromUrl($url, $method);

            if($initializeRequest !== null) {
                $request = $initializeRequest($request);
            }

            $response = $this->executeRequest($request);
        } catch (HttpException $exception) {
            $logSeverity = SolrLogManager::ERROR;
            $response = new ResponseAdapter($exception->getBody(), $exception->getCode(), $exception->getMessage());
        }

        if ($this->configuration->getLoggingQueryRawPost() || $response->getHttpStatus() != 200) {
            $message = 'Querying Solr using '.$method;
            $this->writeLog($logSeverity, $message, $url, $response, $exception, $body);
        }

        return $response;
    }
protected function _sendRawRequest($url, $method = Request::METHOD_GET, $body = '', \Closure $initializeRequest = null)
    {
        $logSeverity = SolrLogManager::INFO;
        $exception = null;

        try {
            $request = $this->buildSolariumRequestFromUrl($url, $method);

            if($initializeRequest !== null) {
                $request = $initializeRequest($request);
            }

            $response = $this->executeRequest($request);
        } catch (HttpException $exception) {
            $logSeverity = SolrLogManager::ERROR;
            $response = new ResponseAdapter($exception->getBody(), $exception->getCode(), $exception->getMessage());
        }

        if ($this->configuration->getLoggingQueryRawPost() || $response->getHttpStatus() != 200) {
            $message = 'Querying Solr using '.$method;
            $this->writeLog($logSeverity, $message, $url, $response, $exception, $body);
        }

        return $response;
    }
protected function _sendRawRequest ( $ url , $ method = Request :: METHOD_GET , $ body = '' , \ Closure $ initializeRequest = null ) { $ logSeverity = SolrLogManager :: INFO ; $ exception = null ; try { $ request = $ this -> buildSolariumRequestFromUrl ( $ url , $ method ) ; if ( $ initializeRequest !== null ) { $ request = $ initializeRequest ( $ request ) ; } $ response = $ this -> executeRequest ( $ request ) ; } catch ( HttpException $ exception ) { $ logSeverity = SolrLogManager :: ERROR ; $ response = new ResponseAdapter ( $ exception -> getBody ( ) , $ exception -> getCode ( ) , $ exception -> getMessage ( ) ) ; } if ( $ this -> configuration -> getLoggingQueryRawPost ( ) || $ response -> getHttpStatus ( ) != 200 ) { $ message = 'Querying Solr using ' . $ method ; $ this -> writeLog ( $ logSeverity , $ message , $ url , $ response , $ exception , $ body ) ; } return $ response ; }
Method that performs an http request with the solarium client.

@param string $url
@param string $method
@param string $body
@param \Closure $initializeRequest
@return ResponseAdapter
Method that performs an http request with the solarium client .