mirror of
https://github.com/searxng/searxng.git
synced 2025-08-31 23:46:49 +02:00
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.
This commit is contained in:
parent
7b531c6fce
commit
96c4d52eef
2 changed files with 6 additions and 2 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue