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
)
:
void
Constructs ResultSet object
Parameters
Name | Type | Description |
---|---|---|
$response | \Elastica_Response | Response object |
_init(
\Elastica_Response $response
)
:
void
Loads all data into the results object (initalisation)
Parameters
Name | Type | Description |
---|---|---|
$response | \Elastica_Response | Response object |
current(
)
:
mixed | bool
Returns the current object of the set
Returns
Type | Description |
---|---|
mixed | bool | Set object or false if not valid (no more entries) |
getResponse(
)
:
\Elastica_Response
Returns response object
Returns
Type | Description |
---|---|
\Elastica_Response | Response object |
getTotalTime(
)
:
int
Returns the total number of ms for this search to complete
Returns
Type | Description |
---|---|
int | Total time |