aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorJohn Nduli2024-06-19 20:53:53 +0300
committerBonfaceKilz2024-07-03 14:24:01 +0300
commitdee508d46c916caa5080da87a264347479576dd2 (patch)
treee3f21dd8dfba58de4397564b93ce046a489bcefd /gn3/api
parent4f691b58419a141a8015c7a2bf5df490d92bc5df (diff)
downloadgenenetwork3-dee508d46c916caa5080da87a264347479576dd2.tar.gz
fix: use correct prefix and index key; group wiki cache query
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/api/search.py b/gn3/api/search.py
index b3e67cd..588e11d 100644
--- a/gn3/api/search.py
+++ b/gn3/api/search.py
@@ -212,7 +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")
+ 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.