From 4f691b58419a141a8015c7a2bf5df490d92bc5df Mon Sep 17 00:00:00 2001 From: John Nduli Date: Tue, 18 Jun 2024 17:29:21 +0300 Subject: feat: add wikidata prefix to search api --- gn3/api/search.py | 1 + 1 file changed, 1 insertion(+) (limited to 'gn3/api') diff --git a/gn3/api/search.py b/gn3/api/search.py index 2bb7058..b3e67cd 100644 --- a/gn3/api/search.py +++ b/gn3/api/search.py @@ -212,6 +212,7 @@ def parse_query(synteny_files_directory: Path, query: str): queryparser.add_boolean_prefix("peakchr", "XPC") queryparser.add_prefix("description", "XD") queryparser.add_prefix("rif", "XRF") + queryparser.add_prefix("wikidata", "XRWD") 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