summaryrefslogtreecommitdiff
path: root/searx/search.py
diff options
context:
space:
mode:
authorCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-01-03 02:31:23 +0100
committerCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-01-03 02:31:23 +0100
commit96c4d52eef7de13f6fa1d6e0ae651c50c3bba515 (patch)
treee85fea57da855c1a558559e1124f163837fb5da8 /searx/search.py
parent7b531c6fcefe1c0c5cc19967454cdddb6e1c8fbd (diff)
downloadsearxng-96c4d52eef7de13f6fa1d6e0ae651c50c3bba515.tar.gz
searxng-96c4d52eef7de13f6fa1d6e0ae651c50c3bba515.zip
Add non exclusif bang
Allow to perform a search while adding an engine (or a category) without adding it "officially" to the request. '?' is used to add an engine without modifying anything else to the request. For example, you can perform a search in the 'general' category, and if you add '?tw' the result from Twitter will be added to the originals results.
Diffstat (limited to 'searx/search.py')
-rw-r--r--searx/search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/search.py b/searx/search.py
index fbbf3fe41..1c8b22f93 100644
--- a/searx/search.py
+++ b/searx/search.py
@@ -371,7 +371,7 @@ class Search(object):
# if engines are calculated from query,
# set categories by using that informations
- if self.engines:
+ if self.engines and query_obj.specific:
self.categories = list(set(engine['category']
for engine in self.engines))