include/SugarSearchEngine/Elastic/Elastica/Response.php

Show: inherited
Table of Contents

Elastica Response object

Stores query time, and result array -> is given to resultset, returned by ...

Author
Nicolas Ruflin  
Category
Xodoa  
Package
Elastica  

\Elastica_Response

Package: Elastica

Elastica Response object

Stores query time, and result array -> is given to resultset, returned by ...

Author
Nicolas Ruflin  
Category
Xodoa  

Properties

Propertyprotected  $_error= 'false'
Default valuefalseDetails
Type
n/a
Propertyprotected  $_queryTime= 'null'
Default valuenullDetails
Type
n/a
Propertyprotected  $_response= 'null'
Default valuenullDetails
Type
n/a
Propertyprotected  $_responseString= ''''
Default value''Details
Type
n/a
Propertyprotected  $_transferInfo= 'array()'
Default valuearray()Details
Type
n/a

Methods

methodpublic__construct( string $responseString ) : void

Parameters
Name Type Description
$responseString string

Response string (json)

methodpublicgetData( ) : array

Returns
Type Description
array Response data array
methodpublicgetEngineTime( ) : int

Returns
Type Description
int Time request took
methodpublicgetError( ) : string

Returns
Type Description
string Error message
methodpublicgetQueryTime( ) : float

This is only available if DEBUG constant is set to true

Returns
Type Description
float Query time
methodpublicgetShardsStatistics( ) : array

Get the _shard statistics for the response

Returns
Type Description
array
methodpublicgetTransferInfo( ) : array

Gets the transfer information if in DEBUG mode.

Returns
Type Description
array Information about the curl request.
methodpublichasError( ) : bool

Returns
Type Description
bool True if response has error
methodpublicsetQueryTime( float $queryTime ) : \Elastica_Response

Sets the query time

Parameters
Name Type Description
$queryTime float

Query time

Returns
Type Description
\Elastica_Response Current object
methodpublicsetTransferInfo( array $transferInfo ) : \Elastica_Response

Sets the transfer info of the curl request. This function is called from the Elastica_Client::_callService only in debug mode.

Parameters
Name Type Description
$transferInfo array

The curl transfer information.

Returns
Type Description
\Elastica_Response Current object
Documentation was generated by DocBlox 0.18.1.