Apache Solr SolrResponse 클래스

(PECL solr >= 0.9.2)


소개

Solr 서버의 응답을 나타냅니다.


클래스 개요

                  
abstract class SolrResponse {

  /* Constants */
  const int PARSE_SOLR_OBJ = 0;
  const int PARSE_SOLR_DOC = 1;

  /* Properties */
  protected int $http_status;
  protected int $parser_mode;
  protected bool $success;
  protected string $http_status_message;
  protected string $http_request_url;
  protected string $http_raw_request_headers;
  protected string $http_raw_request;
  protected string $http_raw_response_headers;
  protected string $http_raw_response;
  protected string $http_digested_response;

  /* Methods */
  public getDigestedResponse(): string
  public getHttpStatus(): int
  public getHttpStatusMessage(): string
  public getRawRequest(): string
  public getRawRequestHeaders(): string
  public getRawResponse(): string
  public getRawResponseHeaders(): string
  public getRequestUrl(): string
  public getResponse(): SolrObject
  public setParseMode(int $parser_mode = 0): bool
  public success(): bool
}
                  
                

Properties

http_status
응답의 http 상태입니다.
parser_mode
solr 문서를 SolrObject 또는 SolrDocument 인스턴스로 구문 분석할지 여부입니다.
success
요청 중에 오류가 있었나요?
http_status_message
http 상태에 대한 자세한 메시지
http_request_url
요청 URL
http_raw_request_headers
요청 중에 전송된 원시 헤더 문자열입니다.
http_raw_request
서버로 전송된 원시 요청
http_raw_response_headers
Solr 서버의 응답 헤더입니다.
http_raw_response
서버의 응답 메시지입니다.
http_digested_response
PHP 직렬화된 형식의 응답입니다.

미리 정의된 상수


SolrResponse 클래스 상수

SolrResponse::PARSE_SOLR_OBJ
문서는 SolrObject 인스턴스로 구문 분석되어야 합니다.
SolrResponse::PARSE_SOLR_DOC
문서는 SolrDocument 인스턴스로 구문 분석되어야 합니다.

목차