aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/gsearch.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/wqflask/wqflask/gsearch.py b/wqflask/wqflask/gsearch.py
index 54d62100..0c13fc62 100644
--- a/wqflask/wqflask/gsearch.py
+++ b/wqflask/wqflask/gsearch.py
@@ -23,15 +23,15 @@ class GSearch:
queryparser = xapian.QueryParser()
queryparser.set_stemmer(xapian.Stem("en"))
queryparser.set_stemming_strategy(queryparser.STEM_SOME)
- queryparser.add_prefix("author", "A")
- queryparser.add_prefix("species", "XS")
- queryparser.add_prefix("group", "XG")
- queryparser.add_prefix("tissue", "XI")
+ queryparser.add_boolean_prefix("author", "A")
+ queryparser.add_boolean_prefix("species", "XS")
+ queryparser.add_boolean_prefix("group", "XG")
+ queryparser.add_boolean_prefix("tissue", "XI")
+ queryparser.add_boolean_prefix("dataset", "XDS")
+ queryparser.add_boolean_prefix("symbol", "XY")
+ queryparser.add_boolean_prefix("chr", "XC")
+ queryparser.add_boolean_prefix("peakchr", "XPC")
queryparser.add_prefix("description", "XD")
- queryparser.add_prefix("dataset", "XDS")
- queryparser.add_prefix("symbol", "XY")
- queryparser.add_prefix("chr", "XC")
- queryparser.add_prefix("peakchr", "XPC")
for i, prefix in enumerate(["mean:", "peak:", "mb:", "peakmb:", "additive:", "year:"]):
queryparser.add_rangeprocessor(xapian.NumberRangeProcessor(i, prefix))
querystring = self.terms