/** * Advances scan page. * * @return $this */ protected function page() { if ($this->key() == $this->count() || !$this->isScrollable()) { return $this; } $raw = $this->manager->scroll($this->scrollId, $this->scrollDuration, Result::RESULTS_RAW); $this->rewind(); $this->scrollId = $raw['_scroll_id']; $this->documents = $raw['hits']['hits']; return $this; }