aboutsummaryrefslogtreecommitdiff
path: root/gn3/api/search.py
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-08-09 12:52:04 +0300
committerBonfaceKilz2024-08-09 15:22:25 +0300
commit784d4bf9f0da40887ffecd000bd361f46c20ea41 (patch)
tree720f5bce997067f844619cfbe24702ef6fddcff0 /gn3/api/search.py
parentefa965c34db3662762dde8ecf376cce561d85453 (diff)
downloadgenenetwork3-784d4bf9f0da40887ffecd000bd361f46c20ea41.tar.gz
Add RIF/WIKI as search prefixes for XRF/XWK.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/api/search.py')
-rw-r--r--gn3/api/search.py2
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.