Files
searxng/searx/templates/simple/opensearch.xml
T

22 lines
1.3 KiB
XML
Raw Normal View History

2014-08-18 10:44:46 +02:00
<?xml version="1.0" encoding="utf-8"?>
2022-08-11 18:37:12 +02:00
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>{{ instance_name }}</ShortName>
2022-08-11 18:37:12 +02:00
<LongName>SearXNG metasearch</LongName>
<Description>SearXNG is a metasearch engine that respects your privacy.</Description>
2014-08-18 10:44:46 +02:00
<InputEncoding>UTF-8</InputEncoding>
2022-08-11 18:37:12 +02:00
<Image type="image/png">{{ url_for('static', filename='img/favicon.png', _external=True) }}</Image>
{% if opensearch_method == 'GET' %}
<Url rel="results" type="text/html" method="{{ opensearch_method }}" template="{{ url_for('search', _external=True) }}?q={searchTerms}"/>
2014-08-18 10:44:46 +02:00
{% else %}
2022-08-11 18:37:12 +02:00
<Url rel="results" type="text/html" method="{{ opensearch_method }}" template="{{ url_for('search', _external=True) }}">
<Param name="q" value="{searchTerms}" />
</Url>
{% endif %}
{% if autocomplete %}
2022-08-11 18:37:12 +02:00
<Url rel="suggestions" type="application/x-suggestions+json" method="{{ opensearch_method }}" template="{{ url_for('autocompleter', _external=True) }}?q={searchTerms}"/>
2014-08-18 10:44:46 +02:00
{% endif %}
<Url rel="self" type="application/opensearchdescription+xml" method="{{ opensearch_method }}" template="{{ url_for('opensearch', _external=True) }}" />
2022-08-11 18:37:12 +02:00
<Query role="example" searchTerms="SearXNG" />
<moz:SearchForm>{{ url_for('search', _external=True) }}</moz:SearchForm>
2014-08-18 10:44:46 +02:00
</OpenSearchDescription>