aboutsummaryrefslogtreecommitdiff
path: root/gn3/api/search.py
AgeCommit message (Expand)Author
2022-10-28Use Xapian index path from app settings....App settings should be accessed from current_app. It should not be hard-coded to a variable in a module. * gn3/db_utils.py: Do not import XAPIAN_DB_PATH from gn3.settings. (xapian_database): Accept path argument. * gn3/api/search.py: Import current_app from flask. (search_results): Pass Xapian index path to xapian_database. Arun Isaac
2022-10-28Add search....* gn3/api/search.py: New file. * gn3/app.py: Register the search blueprint. Arun Isaac