From 784d4bf9f0da40887ffecd000bd361f46c20ea41 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Fri, 9 Aug 2024 12:52:04 +0300 Subject: Add RIF/WIKI as search prefixes for XRF/XWK. Signed-off-by: Munyoki Kilyungi --- gn3/api/search.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gn3') 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. -- cgit v1.2.3