nodes: 0, module; 1, function_definition; 2, function_name:search; 3, parameters; 4, block; 5, identifier:self; 6, identifier:text; 7, default_parameter; 8, default_parameter; 9, default_parameter; 10, default_parameter; 11, expression_statement; 12, assert_statement; 13, expression_statement; 14, return_statement; 15, identifier:sort; 16, None; 17, identifier:offset; 18, integer:100; 19, identifier:page; 20, integer:1; 21, identifier:aquarius_url; 22, None; 23, comment:"""
          Search an asset in oceanDB using aquarius.
  
          :param text: String with the value that you are searching
          :param sort: Dictionary to choose order base in some value
          :param offset: Number of elements shows by page
          :param page: Page number
          :param aquarius_url: Url of the aquarius where you want to search. If there is not
              provided take the default
          :return: List of assets that match with the query
          """; 24, comparison_operator:page >= 1; 25, string; 26, call; 27, list_comprehension; 28, identifier:page; 29, integer:1; 30, string_content:Invalid page value; 31, interpolation; 32, string_content:. Required page >= 1.; 33, attribute; 34, argument_list; 35, call; 36, for_in_clause; 37, identifier:page; 38, identifier:logger; 39, identifier:info; 40, string; 41, identifier:DDO; 42, argument_list; 43, identifier:ddo_dict; 44, subscript; 45, string_content:Searching asset containing:; 46, interpolation; 47, keyword_argument; 48, call; 49, string; 50, identifier:text; 51, identifier:dictionary; 52, identifier:ddo_dict; 53, attribute; 54, argument_list; 55, string_content:results; 56, call; 57, identifier:text_search; 58, identifier:text; 59, identifier:sort; 60, identifier:offset; 61, identifier:page; 62, attribute; 63, argument_list; 64, identifier:self; 65, identifier:_get_aquarius; 66, identifier:aquarius_url
code: def search(self, text, sort=None, offset=100, page=1, aquarius_url=None):
          """
          Search an asset in oceanDB using aquarius.
  
          :param text: String with the value that you are searching
          :param sort: Dictionary to choose order base in some value
          :param offset: Number of elements shows by page
          :param page: Page number
          :param aquarius_url: Url of the aquarius where you want to search. If there is not
              provided take the default
          :return: List of assets that match with the query
          """
          assert page >= 1, f'Invalid page value {page}. Required page >= 1.'
          logger.info(f'Searching asset containing: {text}')
          return [DDO(dictionary=ddo_dict) for ddo_dict in
                  self._get_aquarius(aquarius_url).text_search(text, sort, offset, page)['results']]