public function search($query, $limit = Pagination::DEFAULT_LIMIT)
    {
        return $this->paginateCustom(function () use ($query) {
            return $this->execSearchRequest($query, $this->getSearchScope());
        })->take($limit);
    }
public function search($query, $limit = Pagination::DEFAULT_LIMIT)
    {
        return $this->paginateCustom(function () use ($query) {
            return $this->execSearchRequest($query, $this->getSearchScope());
        })->take($limit);
    }
public function search ( $ query , $ limit = Pagination :: DEFAULT_LIMIT ) { return $ this -> paginateCustom ( function ( ) use ( $ query ) { return $ this -> execSearchRequest ( $ query , $ this -> getSearchScope ( ) ) ; } ) -> take ( $ limit ) ; }
Search entities by search query.

@param string $query
@param int $limit

@return Pagination
Search entities by search query .