searx/user/search_syntax.html

167 lines
7.6 KiB
HTML
Raw Normal View History

2019-12-30 18:31:17 +01:00
<!DOCTYPE html>
2015-11-17 23:38:25 +01:00
2020-06-19 11:15:15 +02:00
<html>
2015-11-17 23:38:25 +01:00
<head>
2019-12-30 18:31:17 +01:00
<meta charset="utf-8" />
2020-09-30 10:35:05 +02:00
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
2019-12-30 18:31:17 +01:00
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Search syntax &#8212; Searx Documentation (Searx-1.0.0.tex)</title>
2015-11-17 23:38:25 +01:00
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/searx.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/tabs.css" />
2020-02-15 10:08:58 +01:00
<script id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
<script src="../_static/jquery.js"></script>
<script src="../_static/underscore.js"></script>
<script src="../_static/doctools.js"></script>
2016-11-04 21:56:14 +01:00
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
2017-03-18 23:56:08 +01:00
<link rel="next" title="Why use a private instance?" href="own-instance.html" />
2020-02-15 10:08:58 +01:00
<link rel="prev" title="User documentation" href="index.html" />
2019-12-30 18:31:17 +01:00
<script>DOCUMENTATION_OPTIONS.URL_ROOT = '../';</script>
2015-11-17 23:38:25 +01:00
2019-12-30 18:31:17 +01:00
</head><body>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
2019-12-30 18:31:17 +01:00
<li class="right" >
<a href="own-instance.html" title="Why use a private instance?"
accesskey="N">next</a> |</li>
<li class="right" >
2020-02-15 10:08:58 +01:00
<a href="index.html" title="User documentation"
2019-12-30 18:31:17 +01:00
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">Searx Documentation (Searx-1.0.0.tex)</a> &#187;</li>
2020-09-30 10:35:05 +02:00
<li class="nav-item nav-item-1"><a href="index.html" accesskey="U">User documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Search syntax</a></li>
2019-12-30 18:31:17 +01:00
</ul>
</div>
2015-11-17 23:38:25 +01:00
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="search-syntax">
2019-12-30 18:31:17 +01:00
<span id="id1"></span><h1>Search syntax<a class="headerlink" href="#search-syntax" title="Permalink to this headline"></a></h1>
<p>Searx allows you to modify the default categories, engines and search language
via the search query.</p>
<dl class="simple">
<dt>Prefix <code class="docutils literal notranslate"><span class="pre">!</span></code></dt><dd><p>to set Category/engine</p>
</dd>
<dt>Prefix: <code class="docutils literal notranslate"><span class="pre">:</span></code></dt><dd><p>to set language</p>
</dd>
<dt>Prefix: <code class="docutils literal notranslate"><span class="pre">?</span></code></dt><dd><p>to add engines and categories to the currently selected categories</p>
</dd>
</dl>
<p>Abbrevations of the engines and languages are also accepted. Engine/category
modifiers are chainable and inclusive (e.g. with <a class="reference external" href="/?q=%21it%20%21ddg%20%21wp%20qwer">!it !ddg !wp qwer</a> search in IT category <strong>and</strong> duckduckgo
2019-12-30 18:31:17 +01:00
<strong>and</strong> wikipedia for <code class="docutils literal notranslate"><span class="pre">qwer</span></code>).</p>
<p>See the <a class="reference external" href="/preferences">/preferences page</a> for the list of engines,
2019-12-30 18:31:17 +01:00
categories and languages.</p>
<div class="section" id="examples">
2015-11-17 23:38:25 +01:00
<h2>Examples<a class="headerlink" href="#examples" title="Permalink to this headline"></a></h2>
2019-12-30 18:31:17 +01:00
<p>Search in wikipedia for <code class="docutils literal notranslate"><span class="pre">qwer</span></code>:</p>
<ul class="simple">
<li><p><a class="reference external" href="/?q=%21wp%20qwer">!wp qwer</a> or</p></li>
<li><p><a class="reference external" href="/?q=%21wikipedia%20qwer">!wikipedia qwer :search:</a></p></li>
2019-12-30 18:31:17 +01:00
</ul>
<p>Image search:</p>
<ul class="simple">
<li><p><a class="reference external" href="/?q=%21images%20Cthulhu">!images Cthulhu</a></p></li>
2019-12-30 18:31:17 +01:00
</ul>
<p>Custom language in wikipedia:</p>
<ul class="simple">
<li><p><a class="reference external" href="/?q=%3Ahu%20%21wp%20hackerspace">:hu !wp hackerspace</a></p></li>
2019-12-30 18:31:17 +01:00
</ul>
</div>
<div class="section" id="multilingual-search">
<h2>Multilingual Search<a class="headerlink" href="#multilingual-search" title="Permalink to this headline"></a></h2>
<p>Searx does not support true multilingual search.
You have to use the language prefix in your search query when searching in a different language.</p>
<p>But there is a workaround:
By adding a new search engine with a different language, Searx will search in your default and other language.</p>
<dl>
<dt>Example configuration in settings.yml for a German and English speaker:</dt><dd><div class="highlight-yaml notranslate"><div class="highlight"><pre><span></span><span class="nt">search</span><span class="p">:</span>
<span class="nt">language </span><span class="p">:</span> <span class="s">&quot;de&quot;</span>
<span class="l l-Scalar l-Scalar-Plain">...</span>
<span class="nt">engines</span><span class="p">:</span>
<span class="p p-Indicator">-</span> <span class="nt">name </span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">google english</span>
<span class="nt">engine </span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">google</span>
<span class="nt">language </span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">english</span>
<span class="l l-Scalar l-Scalar-Plain">...</span>
</pre></div>
</div>
</dd>
</dl>
<p>When searching, the default google engine will return German results and “google english” will return English results.</p>
</div>
</div>
2015-11-17 23:38:25 +01:00
2020-09-30 10:35:05 +02:00
<div class="clearer"></div>
2015-11-17 23:38:25 +01:00
</div>
</div>
</div>
2019-12-30 18:31:17 +01:00
<span id="sidebar-top"></span>
2015-11-17 23:38:25 +01:00
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
2019-12-30 18:31:17 +01:00
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="../index.html">
<img class="logo" src="../_static/searx_logo_small.png" alt="Logo"/>
</a></p>
<h3>Project Links</h3>
<ul>
2020-09-30 10:35:05 +02:00
<li><a href="https://github.com/searx/searx">Source</a>
2019-12-30 18:31:17 +01:00
2020-09-30 10:35:05 +02:00
<li><a href="https://github.com/searx/searx/wiki">Wiki</a>
2019-12-30 18:31:17 +01:00
<li><a href="https://searx.space">Public instances</a>
2019-12-30 18:31:17 +01:00
<li><a href="https://twitter.com/Searx_engine">Twitter</a>
<li><a href="https://github.com/searx/searx/issues">Issue Tracker</a>
2019-12-30 18:31:17 +01:00
</ul><h3>Navigation</h3>
2015-11-17 23:38:25 +01:00
<ul>
2019-12-30 18:31:17 +01:00
<li><a href="../index.html">Overview</a>
<ul>
<li><a href="index.html">User documentation</a>
<ul>
2020-02-15 10:08:58 +01:00
<li>Previous: <a href="index.html" title="previous chapter">User documentation</a>
2019-12-30 18:31:17 +01:00
<li>Next: <a href="own-instance.html" title="next chapter">Why use a private instance?</a></ul>
</li>
</ul>
</li>
2015-11-17 23:38:25 +01:00
</ul>
2019-12-30 18:31:17 +01:00
<div id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="../search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" />
<input type="submit" value="Go" />
</form>
</div>
2015-11-17 23:38:25 +01:00
</div>
2020-02-15 10:08:58 +01:00
<script>$('#searchbox').show(0);</script>
2015-11-17 23:38:25 +01:00
</div>
</div>
<div class="clearer"></div>
</div>
2019-12-30 18:31:17 +01:00
<div class="footer" role="contentinfo">
2020-02-20 19:32:55 +01:00
&#169; Copyright 2015-2020, Adam Tauber, Noémi Ványi.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 3.5.3.
2015-11-17 23:38:25 +01:00
</div>
2020-02-15 10:08:58 +01:00
<script src="../_static/version_warning_offset.js"></script>
2019-12-30 18:31:17 +01:00
2015-11-17 23:38:25 +01:00
</body>
</html>