aboutsummaryrefslogtreecommitdiff
path: root/wqflask/wqflask/do_search.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/wqflask/do_search.py')
-rw-r--r--wqflask/wqflask/do_search.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/wqflask/wqflask/do_search.py b/wqflask/wqflask/do_search.py
index 5c182260..f8cc482f 100644
--- a/wqflask/wqflask/do_search.py
+++ b/wqflask/wqflask/do_search.py
@@ -137,15 +137,18 @@ class MrnaAssaySearch(DoSearch):
search_string = escape(self.search_term[0])
if self.search_term[0] != "*":
- match_clause = """((MATCH (ProbeSet.Name,
+ match_clause = f"""((MATCH (ProbeSet.Name,
ProbeSet.description,
ProbeSet.symbol,
- alias,
GenbankId,
UniGeneId,
Probe_Target_Description)
- AGAINST ('%s' IN BOOLEAN MODE))) AND
- """ % (search_string)
+ AGAINST ('{search_string}' IN BOOLEAN MODE)) OR (
+ alias LIKE '%%; {search_string};%%' OR
+ alias LIKE '{search_string};%%' OR
+ alias LIKE '%%; {search_string}' OR
+ alias LIKE '{search_string}'
+ )) AND """
else:
match_clause = ""