.oO SearXNG Developer Documentation Oo.
|
Classes | |
class | ResultContainer |
class | Timing |
class | UnresponsiveEngine |
Functions | |
result_content_len (content) | |
compare_urls (url_a, url_b) | |
merge_two_infoboxes (infobox1, infobox2) | |
result_score (result, priority) | |
Variables | |
CONTENT_LEN_IGNORED_CHARS_REGEX = re.compile(r'[,;:!?\./\\\\ ()-_]', re.M | re.U) | |
WHITESPACE_REGEX = re.compile('( |\t|\n)+', re.M | re.U) | |
searx.results.compare_urls | ( | url_a, | |
url_b ) |
Lazy compare between two URL. "www.example.com" and "example.com" are equals. "www.example.com/path/" and "www.example.com/path" are equals. "https://www.example.com/" and "http://www.example.com/" are equals. Args: url_a (ParseResult): first URL url_b (ParseResult): second URL Returns: bool: True if url_a and url_b are equals
Definition at line 27 of file results.py.
Referenced by searx.results.merge_two_infoboxes().
searx.results.merge_two_infoboxes | ( | infobox1, | |
infobox2 ) |
Definition at line 60 of file results.py.
References searx.results.compare_urls(), and searx.results.result_content_len().
searx.results.result_content_len | ( | content | ) |
Definition at line 21 of file results.py.
Referenced by searx.results.merge_two_infoboxes().
searx.results.result_score | ( | result, | |
priority ) |
Definition at line 132 of file results.py.
searx.results.CONTENT_LEN_IGNORED_CHARS_REGEX = re.compile(r'[,;:!?\./\\\\ ()-_]', re.M | re.U) |
Definition at line 16 of file results.py.
searx.results.WHITESPACE_REGEX = re.compile('( |\t|\n)+', re.M | re.U) |
Definition at line 17 of file results.py.