.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
__init__ (self) | |
extend (self, engine_name, results) | |
close (self) | |
get_ordered_results (self) | |
results_length (self) | |
int | number_of_results (self) |
add_unresponsive_engine (self, str engine_name, str error_type, bool suspended=False) | |
add_timing (self, str engine_name, float engine_time, float page_load_time) | |
get_timings (self) | |
Public Attributes | |
list | infoboxes = [] |
suggestions = set() | |
dict | answers = {} |
corrections = set() | |
engine_data = defaultdict(dict) | |
bool | paging = False |
Set[UnresponsiveEngine] | unresponsive_engines = set() |
list | timings = [] |
redirect_url = None | |
bool | on_result = lambda _: True |
int | _closed = 0 |
bool | infoboxes = False |
Protected Member Functions | |
_merge_infobox (self, infobox) | |
_is_valid_url_result (self, result, error_msgs) | |
_normalize_url_result (self, result) | |
Protected Attributes | |
list | _merged_results = [] |
list | _number_of_results = [] |
bool | _closed = False |
_lock = RLock() | |
Private Member Functions | |
__merge_url_result (self, result, position) | |
__find_duplicated_http_result (self, result) | |
__merge_duplicated_http_result (self, duplicated, result, position) | |
__merge_result_no_url (self, result, position) | |
Static Private Attributes | |
tuple | __slots__ |
docstring for ResultContainer
Definition at line 165 of file results.py.
searx.results.ResultContainer.__init__ | ( | self | ) |
Definition at line 185 of file results.py.
|
private |
Definition at line 316 of file results.py.
|
private |
Definition at line 334 of file results.py.
|
private |
Definition at line 355 of file results.py.
|
private |
Definition at line 304 of file results.py.
|
protected |
Definition at line 263 of file results.py.
|
protected |
Definition at line 248 of file results.py.
|
protected |
Return True if the result is valid
Definition at line 283 of file results.py.
searx.results.ResultContainer.add_timing | ( | self, | |
str | engine_name, | ||
float | engine_time, | ||
float | page_load_time ) |
Definition at line 461 of file results.py.
searx.results.ResultContainer.add_unresponsive_engine | ( | self, | |
str | engine_name, | ||
str | error_type, | ||
bool | suspended = False ) |
Definition at line 453 of file results.py.
searx.results.ResultContainer.close | ( | self | ) |
Definition at line 361 of file results.py.
searx.results.ResultContainer.extend | ( | self, | |
engine_name, | |||
results ) |
Definition at line 202 of file results.py.
searx.results.ResultContainer.get_ordered_results | ( | self | ) |
Definition at line 426 of file results.py.
searx.results.ResultContainer.get_timings | ( | self | ) |
Definition at line 468 of file results.py.
int searx.results.ResultContainer.number_of_results | ( | self | ) |
Returns the average of results number, returns zero if the average result number is smaller than the actual result count.
Definition at line 435 of file results.py.
searx.results.ResultContainer.results_length | ( | self | ) |
Definition at line 431 of file results.py.
|
staticprivate |
Definition at line 168 of file results.py.
|
protected |
Definition at line 194 of file results.py.
int searx.results.ResultContainer._closed = 0 |
Definition at line 203 of file results.py.
|
protected |
Definition at line 200 of file results.py.
Referenced by searx.metrics.models.Histogram.average(), searx.metrics.models.Histogram.percentage(), searx.metrics.models.Histogram.quartile_percentage(), and searx.metrics.models.Histogram.quartile_percentage_map().
|
protected |
Definition at line 187 of file results.py.
|
protected |
Definition at line 192 of file results.py.
dict searx.results.ResultContainer.answers = {} |
Definition at line 190 of file results.py.
searx.results.ResultContainer.corrections = set() |
Definition at line 191 of file results.py.
searx.results.ResultContainer.engine_data = defaultdict(dict) |
Definition at line 193 of file results.py.
Referenced by searx.search.models.SearchQuery.__copy__().
list searx.results.ResultContainer.infoboxes = [] |
Definition at line 188 of file results.py.
bool searx.results.ResultContainer.infoboxes = False |
Definition at line 255 of file results.py.
bool searx.results.ResultContainer.on_result = lambda _: True |
Definition at line 199 of file results.py.
bool searx.results.ResultContainer.paging = False |
Definition at line 195 of file results.py.
searx.results.ResultContainer.redirect_url = None |
Definition at line 198 of file results.py.
searx.results.ResultContainer.suggestions = set() |
Definition at line 189 of file results.py.
list searx.results.ResultContainer.timings = [] |
Definition at line 197 of file results.py.
Set[UnresponsiveEngine] searx.results.ResultContainer.unresponsive_engines = set() |
Definition at line 196 of file results.py.