mirror of
https://github.com/searxng/searxng.git
synced 2026-05-26 12:50:14 +02:00
dd27fce3b7
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>
30 lines
1.1 KiB
XML
30 lines
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?xml-stylesheet href="{{ url_for('rss_xsl') }}" type="text/xsl"?>
|
|
<rss version="2.0"
|
|
xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
|
|
xmlns:atom="http://www.w3.org/2005/Atom">
|
|
<channel>
|
|
<title>SearXNG search: {{ q|e }}</title>
|
|
<link>{{ url_for('search', _external=True) }}?q={{ q|e }}</link>
|
|
<description>Search results for "{{ q|e }}" - SearXNG</description>
|
|
<opensearch:startIndex>1</opensearch:startIndex>
|
|
<atom:link rel="search" type="application/opensearchdescription+xml" href="{{ opensearch_url }}"/>
|
|
<opensearch:Query role="request" searchTerms="{{ q|e }}" startPage="1" />
|
|
{% if error_message %}
|
|
<item>
|
|
<title>Error</title>
|
|
<description>{{ error_message|e }}</description>
|
|
</item>
|
|
{% endif %}
|
|
{% for r in results %}
|
|
<item>
|
|
<title>{{ r.title }}</title>
|
|
<type>result</type>
|
|
<link>{{ r.url }}</link>
|
|
<description>{{ r.content }}</description>
|
|
{% if r.pubdate %}<pubDate>{{ r.pubdate }}</pubDate>{% endif %}
|
|
</item>
|
|
{% endfor %}
|
|
</channel>
|
|
</rss>
|