$_position
$_position : integer
Current position.
Elastica result set.
List of all hits that are returned for a search on elasticsearch Result set implements iterator
$_response : \Elastica\Response
Response.
$_results : array<mixed,\Elastica\Result>
Results.
__construct(\Elastica\Response $response, \Elastica\Query $query, array<mixed,\Elastica\Result> $results)
Constructs ResultSet object.
\Elastica\Response | $response | Response object |
\Elastica\Query | $query | Query object |
array<mixed,\Elastica\Result> | $results |
getResults() : array<mixed,\Elastica\Result>
Returns all results.
Results
getResponse() : \Elastica\Response
Returns response object.
Response object
current() : \Elastica\Result|boolean
Returns the current object of the set.
Set object or false if not valid (no more entries)
offsetGet(integer $offset) : \Elastica\Result|null
Offset to retrieve.
integer | $offset |
If offset doesn't exist
offsetSet(integer $offset, \Elastica\Result $value)
Offset to set.
integer | $offset | |
\Elastica\Result | $value |