def search(self, query):
logger.info("<STR_LIT>".format(query))<EOL>catalogs = _.to_list(req.get("<STR_LIT>", None))<EOL>if catalogs:<EOL><INDENT>return senaiteapi.search(query, catalog=catalogs)<EOL><DEDENT>return senaiteapi.search(query)<EOL>
search the catalog