Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-01-18 | Support location shorthands in search queries. | Arun Isaac | |
* gn3/api/search.py: Import partial and reduce from functools. Import Callable from typing. (ChromosomalPosition, ChromosomalInterval, FieldProcessor): New classes. (apply_si_suffix, combine_queries, parse_location_field, interval_start, interval_end): New functions. (parse_query): Add field processors for location shorthands. | |||
2023-01-18 | Split off search query parsing into separate function. | Arun Isaac | |
* gn3/api/search.py (parse_query): New function. (search_results): Use parse_query. | |||
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. |