From 4a36a3044d6e39bc60d026d99ed7a010f6505a5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Mon, 30 Nov 2020 08:35:15 +0100 Subject: Add recoll engine (#2325) recoll is a local search engine based on Xapian: http://www.lesbonscomptes.com/recoll/ By itself recoll does not offer web or API access, this can be achieved using recoll-webui: https://framagit.org/medoc92/recollwebui.git This engine uses a custom 'files' result template set `base_url` to the location where recoll-webui can be reached set `dl_prefix` to a location where the file hierarchy as indexed by recoll can be reached set `search_dir` to the part of the indexed file hierarchy to be searched, use an empty string to search the entire search domain --- searx/templates/oscar/macros.html | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'searx/templates/oscar/macros.html') diff --git a/searx/templates/oscar/macros.html b/searx/templates/oscar/macros.html index 57a90aaa2..2bc1e7805 100644 --- a/searx/templates/oscar/macros.html +++ b/searx/templates/oscar/macros.html @@ -47,6 +47,20 @@ {%- endif -%} {%- endmacro %} + +{% macro result_footer_nocache(result) -%} +
+
+ {% for engine in result.engines %} + {{ engine }} + {% endfor %} + {% if proxify %} + {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }} + {% endif %} +
+ +{%- endmacro %} + {% macro result_footer_rtl(result, id) -%}
{{- "" -}} @@ -68,6 +82,18 @@ {%- endif %} {%- endmacro %} + +{% macro result_footer_nocache_rtl(result) -%} +
+ {% for engine in result.engines %} + {{ engine }} + {% endfor %} + {% if proxify %} + {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }} + {% endif %} + +{%- endmacro %} + {% macro preferences_item_header(info, label, rtl, id) -%} {% if rtl %}
-- cgit v1.2.3