.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
__init__ (self, str query, list disabled_engines) | |
get_autocomplete_full_query (self, text) | |
changeQuery (self, query) | |
getQuery (self) | |
getFullQuery (self) | |
__str__ (self) | |
__repr__ (self) | |
Public Attributes | |
query = query | |
disabled_engines = disabled_engines if disabled_engines else [] | |
list | enginerefs = [] |
list | languages = [] |
timeout_limit = None | |
external_bang = None | |
bool | specific = False |
list | autocomplete_list = [] |
list | query_parts = [] |
list | user_query_parts = [] |
tuple | autocomplete_location = None |
bool | redirect_to_first_result = False |
Static Public Attributes | |
list | PARSER_CLASSES |
Protected Member Functions | |
_parse_query (self) | |
searx.query.RawTextQuery.__init__ | ( | self, | |
str | query, | ||
list | disabled_engines ) |
Definition at line 262 of file query.py.
searx.query.RawTextQuery.__repr__ | ( | self | ) |
Definition at line 336 of file query.py.
searx.query.RawTextQuery.__str__ | ( | self | ) |
Definition at line 333 of file query.py.
References searx.query.RawTextQuery.getFullQuery().
|
protected |
parse self.query, if tags are set, which change the search engine or search-language
Definition at line 281 of file query.py.
References searx.query.RawTextQuery.autocomplete_location, searx.query.RawTextQuery.query, searx.search.models.SearchQuery.query, searx.query.RawTextQuery.query_parts, and searx.query.RawTextQuery.user_query_parts.
searx.query.RawTextQuery.changeQuery | ( | self, | |
query ) |
Definition at line 317 of file query.py.
References searx.query.RawTextQuery.autocomplete_list, searx.query.RawTextQuery.autocomplete_location, searx.query.RawTextQuery.getFullQuery(), searx.query.RawTextQuery.query, searx.search.models.SearchQuery.query, and searx.query.RawTextQuery.user_query_parts.
searx.query.RawTextQuery.get_autocomplete_full_query | ( | self, | |
text ) |
Definition at line 312 of file query.py.
References searx.query.RawTextQuery.autocomplete_location, and searx.query.RawTextQuery.getFullQuery().
searx.query.RawTextQuery.getFullQuery | ( | self | ) |
get full query including whitespaces
Definition at line 327 of file query.py.
References searx.format, searx.query.RawTextQuery.getQuery(), and searx.query.RawTextQuery.query_parts.
Referenced by searx.query.RawTextQuery.__str__(), searx.query.RawTextQuery.changeQuery(), and searx.query.RawTextQuery.get_autocomplete_full_query().
searx.query.RawTextQuery.getQuery | ( | self | ) |
Definition at line 324 of file query.py.
References searx.query.RawTextQuery.user_query_parts.
Referenced by searx.query.RawTextQuery.getFullQuery().
list searx.query.RawTextQuery.autocomplete_list = [] |
Definition at line 273 of file query.py.
Referenced by searx.query.RawTextQuery.changeQuery().
tuple searx.query.RawTextQuery.autocomplete_location = None |
Definition at line 277 of file query.py.
Referenced by searx.query.RawTextQuery._parse_query(), searx.query.RawTextQuery.changeQuery(), and searx.query.RawTextQuery.get_autocomplete_full_query().
searx.query.RawTextQuery.disabled_engines = disabled_engines if disabled_engines else [] |
searx.query.RawTextQuery.external_bang = None |
Definition at line 271 of file query.py.
Referenced by searx.search.models.SearchQuery.__copy__(), searx.search.models.SearchQuery.__eq__(), searx.search.models.SearchQuery.__hash__(), and searx.search.models.SearchQuery.__repr__().
list searx.query.RawTextQuery.languages = [] |
Definition at line 269 of file query.py.
Referenced by searx.search.checker.impl.ResultContainerTests._add_language(), searx.search.checker.impl.TestResults.add_language(), and searx.enginelib.traits.EngineTraits.get_language().
|
static |
searx.query.RawTextQuery.query = query |
Definition at line 265 of file query.py.
Referenced by searx.search.models.SearchQuery.__copy__(), searx.search.models.SearchQuery.__eq__(), searx.search.models.SearchQuery.__hash__(), searx.search.models.SearchQuery.__repr__(), searx.query.RawTextQuery._parse_query(), and searx.query.RawTextQuery.changeQuery().
searx.query.RawTextQuery.query_parts = [] |
Definition at line 275 of file query.py.
Referenced by searx.query.RawTextQuery._parse_query(), and searx.query.RawTextQuery.getFullQuery().
bool searx.query.RawTextQuery.redirect_to_first_result = False |
Definition at line 278 of file query.py.
Referenced by searx.search.models.SearchQuery.__copy__(), searx.search.models.SearchQuery.__eq__(), searx.search.models.SearchQuery.__hash__(), and searx.search.models.SearchQuery.__repr__().
searx.query.RawTextQuery.timeout_limit = None |
Definition at line 270 of file query.py.
Referenced by searx.search.models.SearchQuery.__copy__(), searx.search.models.SearchQuery.__eq__(), searx.search.models.SearchQuery.__hash__(), and searx.search.models.SearchQuery.__repr__().
searx.query.RawTextQuery.user_query_parts = [] |
Definition at line 276 of file query.py.
Referenced by searx.query.RawTextQuery._parse_query(), searx.query.RawTextQuery.changeQuery(), and searx.query.RawTextQuery.getQuery().