Class Apache_Solr_Response

Description

Represents a Solr response. Parses the raw response into a set of stdClass objects and associative arrays for easy access.

Currently requires json_decode which is bundled with PHP >= 5.2.0, Alternatively can be installed with PECL. Zend Framework also includes a purely PHP solution.

  • todo: When Solr 1.3 is released, possibly convert to use PHP or Serialized PHP output writer

Located in /Response.php (line 32)


	
			
Method Summary
Apache_Solr_Response __construct (string $rawResponse, [array $httpHeaders = array()])
string getEncoding ()
integer getHttpStatus ()
string getRawResponse ()
string getType ()
unknown __get (unknown_type $key)
Methods
Constructor __construct (line 60)

Constructor. Takes the raw HTTP response body and the exploded HTTP headers

  • access: public
Apache_Solr_Response __construct (string $rawResponse, [array $httpHeaders = array()])
  • string $rawResponse
  • array $httpHeaders
getEncoding (line 152)

Get character encoding of this response. Should usually be utf-8, but just in case

  • access: public
string getEncoding ()
getHttpStatus (line 122)

Get the HTTP status code

  • access: public
integer getHttpStatus ()
getHttpStatusMessage (line 132)

Get the HTTP status message of the response

  • access: public
string getHttpStatusMessage ()
getRawResponse (line 162)

Get the raw response as it was given to this object

  • access: public
string getRawResponse ()
getType (line 142)

Get content type of this Solr response

  • access: public
string getType ()
__get (line 173)

Magic get to expose the parsed data and to lazily load it

  • access: public
unknown __get (unknown_type $key)
  • unknown_type $key

Documentation generated on Tue, 02 Oct 2007 12:55:38 -0400 by phpDocumentor 1.4.0