include/SugarSearchEngine/Elastic/Elastica/ResultSet.php
Elastica result set
List of all hits that are returned for a search on elasticsearch Result set implents iterator
- Author
- Nicolas Ruflin
- Category
- Xodoa
- Package
- Elastica
\Elastica_ResultSet
Package: Elastica
Elastica result set
List of all hits that are returned for a search on elasticsearch Result set implents iterator
- Parent(s)
- ?\Iterator\Countable
- Author
- Nicolas Ruflin
- Category
- Xodoa
Properties
Methods

__construct(
\Elastica_Response $response
)
:
voidConstructs ResultSet object
Parameters
| Name | Type | Description |
|---|---|---|
| $response | \Elastica_Response | Response object |

_init(
\Elastica_Response $response
)
:
voidLoads all data into the results object (initalisation)
Parameters
| Name | Type | Description |
|---|---|---|
| $response | \Elastica_Response | Response object |

current(
)
:
mixed | boolReturns the current object of the set
Returns
| Type | Description |
|---|---|
| mixed | bool | Set object or false if not valid (no more entries) |

getResponse(
)
:
\Elastica_ResponseReturns response object
Returns
| Type | Description |
|---|---|
| \Elastica_Response | Response object |

getTotalTime(
)
:
intReturns the total number of ms for this search to complete
Returns
| Type | Description |
|---|---|
| int | Total time |