Property | Type | Description | |
---|---|---|---|
$_error | Error. | ||
$_jsonBigintConversion | boolean | Whether or not to convert bigint results to string (see issue #717). | |
$_queryTime | Query time. | ||
$_response | array | null | Response. | |
$_responseString | Response string (json). | ||
$_status | integer | HTTP response status code. | |
$_transferInfo | Transfer info. |
Method | Description | |
---|---|---|
__construct ( string | array $responseString, integer $responseStatus = null ) | Construct. | |
getData ( ) : array | Response data array. | |
getEngineTime ( ) : integer | Time request took. | |
getError ( ) : string | Error message. | |
getErrorMessage ( ) : string | ||
getFullError ( ) : array | string | A keyed array representing any errors that occured. | |
getJsonBigintConversion ( ) : boolean | Gets whether or not to apply bigint conversion on the JSON result. | |
getQueryTime ( ) : float | Returns query execution time. | |
getScrollId ( ) : string | Get the _scroll value for the response. | |
getShardsStatistics ( ) : array | Get the _shard statistics for the response. | |
getStatus ( ) : integer | ||
getTransferInfo ( ) : array | Gets the transfer information. | |
hasError ( ) : boolean | True if response has error. | |
hasFailedShards ( ) : boolean | True if response has failed shards. | |
isOk ( ) : boolean | Checks if the query returned ok. | |
setJsonBigintConversion ( boolean $jsonBigintConversion ) | Sets whether or not to apply bigint conversion on the JSON result. | |
setQueryTime ( float $queryTime ) | Sets the query time. | |
setTransferInfo ( array $transferInfo ) | Sets the transfer info of the curl request. This function is called from the \Elastica\Client::_callService . |
public getEngineTime ( ) : integer | ||
return | integer | Time request took |
public getErrorMessage ( ) : string | ||
return | string | Error string based on the error object |
public getFullError ( ) : array | string | ||
return | array | string | Error data |
public getJsonBigintConversion ( ) : boolean | ||
return | boolean |
public getQueryTime ( ) : float | ||
return | float | Query time |
public getScrollId ( ) : string | ||
return | string |
public getShardsStatistics ( ) : array | ||
return | array |
public getTransferInfo ( ) : array | ||
return | array | Information about the curl request. |
public hasFailedShards ( ) : boolean | ||
return | boolean | True if response has failed shards |
public setJsonBigintConversion ( boolean $jsonBigintConversion ) | ||
$jsonBigintConversion | boolean |
public setQueryTime ( float $queryTime ) | ||
$queryTime | float | Query time |
public setTransferInfo ( array $transferInfo ) | ||
$transferInfo | array | The curl transfer information. |
protected bool $_jsonBigintConversion | ||
return | boolean |