def get_search_results(portal_type=None, uid=None, **kw):
<EOL>if uid is not None:<EOL><INDENT>logger.info("<STR_LIT>" % uid)<EOL>return u.to_list(get_object_by_uid(uid))<EOL><DEDENT>include_portal = False<EOL>if u.to_string(portal_type) == "<STR_LIT>":<EOL><INDENT>include_portal = True<EOL><DEDENT>if "<STR_LIT>" in u.to_list(req.get("<STR_LIT>")):<EOL><INDENT>include_portal = True<EOL><DEDENT>results = search(portal_type=portal_type, uid=uid, **kw)<EOL>if include_portal:<EOL><INDENT>results = list(results) + u.to_list(get_portal())<EOL><DEDENT>return results<EOL>
Search the catalog and return the results

    :returns: Catalog search results
    :rtype: iterable