public function search(string $filtersQuery)
    {
        $end = '/search'.$this->endpoint();
        $query = [
            'query' => '"'.$filtersQuery.'"',
        ];
        return $this->api()->request('GET', $end, null, $query);
    }
public function search(string $filtersQuery)
    {
        $end = '/search'.$this->endpoint();
        $query = [
            'query' => '"'.$filtersQuery.'"',
        ];
        return $this->api()->request('GET', $end, null, $query);
    }
public function search ( string $ filtersQuery ) { $ end = '/search' . $ this -> endpoint ( ) ; $ query = [ 'query' => '"' . $ filtersQuery . '"' , ] ; return $ this -> api ( ) -> request ( 'GET' , $ end , null , $ query ) ; }
Filters by ticket fields

Make sure to pass a valid $filtersQuery string example: "type:question"

@api
@param string $filtersQuery
@return array|null
@throws \Freshdesk\Exceptions\AccessDeniedException
@throws \Freshdesk\Exceptions\ApiException
@throws \Freshdesk\Exceptions\AuthenticationException
@throws \Freshdesk\Exceptions\ConflictingStateException
@throws \Freshdesk\Exceptions\NotFoundException
@throws \Freshdesk\Exceptions\RateLimitExceededException
@throws \Freshdesk\Exceptions\UnsupportedContentTypeException
@throws \Freshdesk\Exceptions\MethodNotAllowedException
@throws \Freshdesk\Exceptions\UnsupportedAcceptHeaderException
@throws \Freshdesk\Exceptions\ValidationException
Filters by ticket fields