diff options
author | Martin Fischer <martin@push-f.com> | 2022-01-06 13:45:25 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-01-06 14:10:58 +0100 |
commit | 61935c72efa3c164184cecccc7cdc5713a93d654 (patch) | |
tree | 29cb887129d4b496891b0a28dec61f6b7d592712 /searx/query.py | |
parent | 03189d60f474e2aeb758760ecae8140771c8c75d (diff) | |
download | searxng-61935c72efa3c164184cecccc7cdc5713a93d654.tar.gz searxng-61935c72efa3c164184cecccc7cdc5713a93d654.zip |
[fix] remove broken ? search operator
The ? search operator has been broken for some time and
currently only raises the question why it's still there.
## Context ##
The query "Paris !images" searches for "Paris" in the "images" category.
Once upon a time Searx supported "Paris ?images" to search for "Paris"
in the currently enabled categories and the "images" category.
The feature makes sense ... the ? syntax does not.
We will hopefully introduce a +!images syntax in the future.
Fixes #702.
Diffstat (limited to 'searx/query.py')
-rw-r--r-- | searx/query.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/query.py b/searx/query.py index 5d2d9de26..f5f628823 100644 --- a/searx/query.py +++ b/searx/query.py @@ -177,7 +177,7 @@ class ExternalBangParser(QueryPartParser): class BangParser(QueryPartParser): @staticmethod def check(raw_value): - return raw_value[0] == '!' or raw_value[0] == '?' + return raw_value[0] == '!' def __call__(self, raw_value): value = raw_value[1:].replace('-', ' ').replace('_', ' ') |