/** * Clears the current scroll window if there is a scroll_id stored * * @return void */ private function clearScroll() { if (!empty($this->scroll_id)) { $this->client->clearScroll(array('scroll_id' => $this->scroll_id, 'client' => array('ignore' => 404))); $this->scroll_id = null; } }
/** * Clears the current scroll window if there is a scroll_id stored * * @return void */ public function clearScroll() { if (!empty($this->scrollId)) { $scrollId = $this->scrollId; $this->scrollId = null; $this->client->clearScroll(['scroll_id' => $scrollId]); } }