async def search(self, query,<EOL>sort_map = {'<STR_LIT>':<NUM_LIT:0>,'<STR_LIT>':<NUM_LIT:1>,'<STR_LIT>':<NUM_LIT:2>,'<STR_LIT>':<NUM_LIT:3>,'<STR_LIT>':<NUM_LIT:4>},<EOL>strict_sort = False):
search_params = {<EOL>'<STR_LIT>'     : False,<EOL>'<STR_LIT>' : query<EOL>}<EOL>if strict_sort:<EOL><INDENT>search_params['<STR_LIT>'] = '<STR_LIT:U+002C>'.join(sort_map.keys())<EOL><DEDENT>json  = await self.connector.getJson('<STR_LIT>', **search_params)<EOL>items = await self.process(json["<STR_LIT>"])<EOL>m_size = len(sort_map)<EOL>items  = sorted(items, key = lambda x : sort_map.get(x.type, m_size))<EOL>return items<EOL>
Sends a search request to emby, returns results

        |coro|

        Parameters
        ----------
        query : str
          the search string to send to emby
        sort_map : dict
          is a dict of strings to ints. Strings should be item types, and
          the ints are the priority of those types(for sorting).
          lower valued(0) will appear first.
        strict_sort : bool
          if True, then only item types in the keys of sortmap will be
          included in the results

        Returns
        -------
        list
          list of emby objects