diff options
author | Munyoki Kilyungi | 2024-08-09 12:52:04 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-08-09 15:22:25 +0300 |
commit | 784d4bf9f0da40887ffecd000bd361f46c20ea41 (patch) | |
tree | 720f5bce997067f844619cfbe24702ef6fddcff0 /gn3 | |
parent | efa965c34db3662762dde8ecf376cce561d85453 (diff) | |
download | genenetwork3-784d4bf9f0da40887ffecd000bd361f46c20ea41.tar.gz |
Add RIF/WIKI as search prefixes for XRF/XWK.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/api/search.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gn3/api/search.py b/gn3/api/search.py index e4e2d9f..772ff1d 100644 --- a/gn3/api/search.py +++ b/gn3/api/search.py @@ -222,6 +222,8 @@ def parse_query(synteny_files_directory: Path, query: str): queryparser.add_prefix("description", "XD") queryparser.add_prefix("rif", "XRF") queryparser.add_prefix("wiki", "XWK") + queryparser.add_prefix("RIF", "XRF") + queryparser.add_prefix("WIKI", "XWK") range_prefixes = ["mean", "peak", "position", "peakmb", "additive", "year"] for i, prefix in enumerate(range_prefixes): # Treat position specially since it needs its own field processor. |