src/TweetNest.php
public function tweets($limit = 1000)
    { 
        $params = [
            'index' => $this->_esindex,
            'type' => $this->_estype,
            'size' => $limit,
            'body' => [
                'query' => [
                    'match_all' => []
                ]
            ]
        ];
        $query = $this->_es->search($params);
        if ($query['hits']['total'] >= 1)
            $result = $query['hits']['hits'];
        else
            $result = [];
        return $result;
    }
public function tweets($limit = 1000)
    { 
        $params = [
            'index' => $this->_esindex,
            'type' => $this->_estype,
            'size' => $limit,
            'body' => [
                'query' => [
                    'match_all' => []
                ]
            ]
        ];
        $query = $this->_es->search($params);
        if ($query['hits']['total'] >= 1)
            $result = $query['hits']['hits'];
        else
            $result = [];
        return $result;
    }
public function tweets ( $ limit = 1000 ) { $ params = [ 'index' => $ this -> _esindex , 'type' => $ this -> _estype , 'size' => $ limit , 'body' => [ 'query' => [ 'match_all' => [ ] ] ] ] ; $ query = $ this -> _es -> search ( $ params ) ; if ( $ query [ 'hits' ] [ 'total' ] >= 1 ) $ result = $ query [ 'hits' ] [ 'hits' ] ; else $ result = [ ] ; return $ result ; }
Return all tweets

@param  int   $limit Limit
@return array
Return all tweets