pir_pipeline.utils.dashboard_utils.get_search_results¶
- pir_pipeline.utils.dashboard_utils.get_search_results(keyword: str, db: SQLAlchemyUtils, id_column: str = 'question_id') dict ¶
Return results for the search page
- Args:
keyword (str): The term to search for db (SQLAlchemyUtils): SQLAlchemyUtils object for database interactions id_column (str): Column to use as the primary identifier
- Returns:
dict: Dictionary of search results