lib/Elastica/Scroll.php
public function rewind()
    {
        // reset state
        $this->_options = [null, null];
        $this->currentPage = 0;

        // initial search
        $this->_saveOptions();

        $this->_search->setOption(Search::OPTION_SCROLL, $this->expiryTime);
        $this->_search->setOption(Search::OPTION_SCROLL_ID, null);
        $this->_setScrollId($this->_search->search());

        $this->_revertOptions();
    }
public function rewind()
    {
        // reset state
        $this->_options = [null, null];
        $this->currentPage = 0;

        // initial search
        $this->_saveOptions();

        $this->_search->setOption(Search::OPTION_SCROLL, $this->expiryTime);
        $this->_search->setOption(Search::OPTION_SCROLL_ID, null);
        $this->_setScrollId($this->_search->search());

        $this->_revertOptions();
    }
public function rewind ( ) { // reset state $ this -> _options = [ null , null ] ; $ this -> currentPage = 0 ; // initial search $ this -> _saveOptions ( ) ; $ this -> _search -> setOption ( Search :: OPTION_SCROLL , $ this -> expiryTime ) ; $ this -> _search -> setOption ( Search :: OPTION_SCROLL_ID , null ) ; $ this -> _setScrollId ( $ this -> _search -> search ( ) ) ; $ this -> _revertOptions ( ) ; }
Initial scroll search.

@see http://php.net/manual/en/iterator.rewind.php
Initial scroll search .