Definition at line 152 of file query.py.
◆ __call__()
searx.query.ExternalBangParser.__call__ |
( |
| self, |
|
|
| raw_value ) |
◆ _autocomplete()
searx.query.ExternalBangParser._autocomplete |
( |
| self, |
|
|
| bang_ac_list ) |
|
protected |
Definition at line 172 of file query.py.
172 def _autocomplete(self, bang_ac_list):
173 if not bang_ac_list:
174 bang_ac_list = ['g', 'ddg', 'bing']
175 for external_bang in bang_ac_list:
176 self._add_autocomplete('!!' + external_bang)
177
178
References searx.query.QueryPartParser._add_autocomplete().
◆ _parse()
searx.query.ExternalBangParser._parse |
( |
| self, |
|
|
| value ) |
|
protected |
◆ check()
searx.query.ExternalBangParser.check |
( |
| raw_value | ) |
|
|
static |
Check if raw_value can be parsed
Reimplemented from searx.query.QueryPartParser.
Definition at line 154 of file query.py.
154 def check(raw_value):
155 return raw_value.startswith('!!') and len(raw_value) > 2
156
The documentation for this class was generated from the following file:
- /home/andrew/Documents/code/public/searxng/searx/query.py