include/SugarSearchEngine/Elastic/Elastica/Response.php
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
Methods

__construct(
string $responseString
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $responseString | string | Response string (json) |

getQueryTime(
)
:
floatThis is only available if DEBUG constant is set to true
Returns
| Type | Description |
|---|---|
| float | Query time |

getShardsStatistics(
)
:
arrayGet the _shard statistics for the response
Returns
| Type | Description |
|---|---|
| array |

getTransferInfo(
)
:
arrayGets the transfer information if in DEBUG mode.
Returns
| Type | Description |
|---|---|
| array | Information about the curl request. |

setQueryTime(
float $queryTime
)
:
\Elastica_ResponseSets the query time
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $queryTime | float | Query time |
| Type | Description |
|---|---|
| \Elastica_Response | Current object |

setTransferInfo(
array $transferInfo
)
:
\Elastica_ResponseSets the transfer info of the curl request. This function is called from the Elastica_Client::_callService only in debug mode.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $transferInfo | array | The curl transfer information. |
| Type | Description |
|---|---|
| \Elastica_Response | Current object |