Properties

$expiryTime

$expiryTime : string

Type

string

$_nextScrollId

$_nextScrollId : null|string

Type

null|string

$_currentResultSet

$_currentResultSet : null|\Elastica\ResultSet

Type

null|\Elastica\ResultSet

$_options

$_options : array

0: scroll<br> 1: scroll id.

Type

array

$totalPages

$totalPages : 

Type

$currentPage

$currentPage : 

Type

Methods

__construct()

__construct(\Elastica\Search  $search, string  $expiryTime = '1m') 

Constructor.

Parameters

\Elastica\Search $search
string $expiryTime

current()

current() : \Elastica\ResultSet

Returns current result set.

Returns

\Elastica\ResultSet

next()

next() 

Next scroll search.

key()

key() : string

Returns scroll id.

Returns

string

valid()

valid() : boolean

Returns true if current result set contains at least one hit.

Returns

boolean

rewind()

rewind() 

Initial scroll search.

_setScrollId()

_setScrollId(\Elastica\ResultSet  $resultSet) 

Prepares Scroll for next request.

Parameters

\Elastica\ResultSet $resultSet

_saveOptions()

_saveOptions() 

Save all search options manipulated by Scroll.

_revertOptions()

_revertOptions() 

Revert search options to previously saved state.