summaryrefslogtreecommitdiff
path: root/searx/result_types
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2026-05-25 12:43:02 +0200
committerGitHub <noreply@github.com>2026-05-25 12:43:02 +0200
commitdd27fce3b7b5a14e4855474ead81447adbf73d7d (patch)
tree47d321c0da2b93e67d1bec0d44ac018864cffcb5 /searx/result_types
parentefc305b7f98399da2acc8596a496ad408c704d7b (diff)
[unbload] drop meaningless field ``number_of_results_xpath`` from results (#6130)
In the result-list, the ``number_of_results`` indicate the number of hits in the Index, they do not indicate how many results are in the answer. In the past, search engines such as google or ddg had an indication on the first page of a search term of how many hits there were for this term in total in their index. This info was added up in SearXNG and delivered under ``number_of_results``. Nowadays the search engines no longer indicate how many hits there are in the index and so this field in SearXNG is also superfluous. - https://github.com/searxng/searxng/issues/2457#issuecomment-2566181574 - https://github.com/searxng/searxng/issues/2987 - https://github.com/searxng/searxng/issues/5034 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/result_types')
-rw-r--r--searx/result_types/_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/result_types/_base.py b/searx/result_types/_base.py
index e83be4382..3624d64ec 100644
--- a/searx/result_types/_base.py
+++ b/searx/result_types/_base.py
@@ -529,7 +529,7 @@ class LegacyResult(dict[str, t.Any]):
# the img_src are equal.
return hash(f"{self.template}|{self.url}|{self.img_src}")
- if not any(cls in self for cls in ["suggestion", "correction", "infobox", "number_of_results", "engine_data"]):
+ if not any(cls in self for cls in ["suggestion", "correction", "infobox", "engine_data"]):
# Ordinary url-results are equal if their values for template,
# parsed_url (without schema) and img_src` are equal.