mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
initial implemention of autocompletion in opensearch.xml
This commit is contained in:
parent
360543dec4
commit
cc7f3cb617
2 changed files with 21 additions and 5 deletions
|
|
@ -6,9 +6,18 @@
|
|||
<LongName>searx metasearch</LongName>
|
||||
{% if method == 'get' %}
|
||||
<Url type="text/html" method="get" template="{{ host }}?q={searchTerms}"/>
|
||||
<Url type="application/x-suggestions+json" method="get" template="{{ host }}autocompleter">
|
||||
<Param name="format" value="x-suggestions" />
|
||||
<Param name="q" value="{searchTerms}" />
|
||||
</Url>
|
||||
{% else %}
|
||||
<Url type="text/html" method="post" template="{{ host }}">
|
||||
<Param name="q" value="{searchTerms}" />
|
||||
<Param name="q" value="{searchTerms}" />
|
||||
</Url>
|
||||
<!-- TODO, POST REQUEST doesn't work -->
|
||||
<Url type="application/x-suggestions+json" method="get" template="{{ host }}autocompleter">
|
||||
<Param name="format" value="x-suggestions" />
|
||||
<Param name="q" value="{searchTerms}" />
|
||||
</Url>
|
||||
{% endif %}
|
||||
</OpenSearchDescription>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue