SOLRRESPONSE(3) 1 SOLRRESPONSE(3)
The SolrResponse class
INTRODUCTION
Represents a response from the Solr server.
CLASS SYNOPSIS
SolrResponse
abstract
SolrResponse
Constants
o const integer$SolrResponse::PARSE_SOLR_OBJ0
o const integer$SolrResponse::PARSE_SOLR_DOC1
Properties
o protected integer$http_status
o protected integer$parser_mode
o protected bool$success
o protected string$http_status_message
o protected string$http_request_url
o protected string$http_raw_request_headers
o protected string$http_raw_request
o protected string$http_raw_response_headers
o protected string$http_raw_response
o protected string$http_digested_response
Methods
o public string SolrResponse::getDigestedResponse (void )
o public int SolrResponse::getHttpStatus (void )
o public string SolrResponse::getHttpStatusMessage (void )
o public string SolrResponse::getRawRequest (void )
o public string SolrResponse::getRawRequestHeaders (void )
o public string SolrResponse::getRawResponse (void )
o public string SolrResponse::getRawResponseHeaders (void )
o public string SolrResponse::getRequestUrl (void )
o public SolrObject SolrResponse::getResponse (void )
o public bool SolrResponse::setParseMode ([int $parser_mode])
o public bool SolrResponse::success (void )
PROPERTIES
o $http_status
-The http status of the response.
o $parser_mode
-Whether to parse the solr documents as SolrObject or SolrDocument instances.
o $success
-Was there an error during the request
o $http_status_message
-Detailed message on http status
o $http_request_url
-The request URL
o $http_raw_request_headers
-A string of raw headers sent during the request.
o $http_raw_request
-The raw request sent to the server
o $http_raw_response_headers
-Response headers from the Solr server.
o $http_raw_response
-The response message from the server.
o $http_digested_response
-The response in PHP serialized format.
PREDEFINED CONSTANTS
SOLRRESPONSE CLASS CONSTANTS
o SolrResponse::PARSE_SOLR_OBJ -Documents should be parsed as SolrObject instances
o SolrResponse::PARSE_SOLR_DOC -Documents should be parsed as SolrDocument instances.
PHP Documentation Group SOLRRESPONSE(3)