<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def search(self, q, resolve=True, result_type=None, account_id=None, offset=None, min_id=None, max_id=None):
 """ Fetch matching hashtags, accounts and statuses. Will perform webfinger lookups if resolve is True. Full-text search is only enabled if the instance supports it, and is restricted to statuses the logged-in user wrote or was mentioned in. `result_type` can be one of "accounts", "hashtags" or "statuses", to only search for that type of object. Specify `account_id` to only get results from the account with that id. `offset`, `min_id` and `max_id` can be used to paginate. Returns a `search result dict`_, with tags as `hashtag dicts`_. """

        return self.search_v2(q, resolve=resolve, result_type=result_type, account_id=account_id,
                              offset=offset, min_id=min_id, max_id=max_id)