src/Query.php
public function response($scroll_id = NULL)
    {

        $scroll_id = !is_null($scroll_id) ? $scroll_id : $this->scroll_id;

        if ($scroll_id) {

            $result = $this->connection->scroll([
                "scroll" => $this->scroll,
                "scroll_id" => $scroll_id
            ]);

        } else {
            $result = $this->connection->search($this->query());
        }

        if (!is_null($this->cacheMinutes)) {
            app("cache")->driver($this->cacheDriver)->put($this->getCacheKey(), $result, $this->cacheMinutes);
        }

        return $result;
    }
public function response($scroll_id = NULL)
    {

        $scroll_id = !is_null($scroll_id) ? $scroll_id : $this->scroll_id;

        if ($scroll_id) {

            $result = $this->connection->scroll([
                "scroll" => $this->scroll,
                "scroll_id" => $scroll_id
            ]);

        } else {
            $result = $this->connection->search($this->query());
        }

        if (!is_null($this->cacheMinutes)) {
            app("cache")->driver($this->cacheDriver)->put($this->getCacheKey(), $result, $this->cacheMinutes);
        }

        return $result;
    }
public function response ( $ scroll_id = NULL ) { $ scroll_id = ! is_null ( $ scroll_id ) ? $ scroll_id : $ this -> scroll_id ; if ( $ scroll_id ) { $ result = $ this -> connection -> scroll ( [ "scroll" => $ this -> scroll , "scroll_id" => $ scroll_id ] ) ; } else { $ result = $ this -> connection -> search ( $ this -> query ( ) ) ; } if ( ! is_null ( $ this -> cacheMinutes ) ) { app ( "cache" ) -> driver ( $ this -> cacheDriver ) -> put ( $ this -> getCacheKey ( ) , $ result , $ this -> cacheMinutes ) ; } return $ result ; }
Get non cached results
@param null $scroll_id
@return mixed
Get non cached results