.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
__init__ (self, raw_text_query, enable_autocomplete) | |
__call__ (self, raw_value) | |
Static Public Member Functions | |
check (raw_value) | |
Public Attributes | |
raw_text_query = raw_text_query | |
enable_autocomplete = enable_autocomplete | |
Protected Member Functions | |
_add_autocomplete (self, value) | |
Static Private Attributes | |
str | __slots__ = "raw_text_query", "enable_autocomplete" |
searx.query.QueryPartParser.__init__ | ( | self, | |
raw_text_query, | |||
enable_autocomplete ) |
searx.query.QueryPartParser.__call__ | ( | self, | |
raw_value ) |
Try to parse raw_value: set the self.raw_text_query properties return True if raw_value has been parsed self.raw_text_query.autocomplete_list is also modified if self.enable_autocomplete is True
Reimplemented in searx.query.BangParser, searx.query.ExternalBangParser, searx.query.FeelingLuckyParser, searx.query.LanguageParser, and searx.query.TimeoutParser.
Definition at line 30 of file query.py.
|
protected |
Definition at line 39 of file query.py.
Referenced by searx.query.BangParser._autocomplete(), searx.query.ExternalBangParser._autocomplete(), searx.query.LanguageParser._autocomplete(), and searx.query.TimeoutParser._autocomplete().
|
static |
Check if raw_value can be parsed
Reimplemented in searx.query.BangParser, searx.query.ExternalBangParser, searx.query.FeelingLuckyParser, searx.query.LanguageParser, and searx.query.TimeoutParser.
Definition at line 22 of file query.py.
|
staticprivate |
searx.query.QueryPartParser.enable_autocomplete = enable_autocomplete |
Definition at line 27 of file query.py.
Referenced by searx.query.LanguageParser.__call__(), and searx.query.TimeoutParser.__call__().
searx.query.QueryPartParser.raw_text_query = raw_text_query |
Definition at line 26 of file query.py.
Referenced by searx.query.BangParser.__call__(), searx.query.FeelingLuckyParser.__call__(), searx.query.BangParser._autocomplete(), searx.query.LanguageParser._autocomplete(), searx.query.BangParser._parse(), searx.query.ExternalBangParser._parse(), searx.query.LanguageParser._parse(), and searx.query.TimeoutParser._parse().