Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-10-28 | Use Xapian index path from app settings. | Arun Isaac | |
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. | |||
2022-10-28 | Add search. | Arun Isaac | |
* gn3/api/search.py: New file. * gn3/app.py: Register the search blueprint. |