2019-12-12 18:20:56 +00:00
|
|
|
|
|
|
|
.. _search-syntax:
|
|
|
|
|
|
|
|
=============
|
2015-11-17 22:13:30 +00:00
|
|
|
Search syntax
|
|
|
|
=============
|
|
|
|
|
2019-12-12 18:20:56 +00:00
|
|
|
Searx allows you to modify the default categories, engines and search language
|
|
|
|
via the search query.
|
2015-11-17 22:13:30 +00:00
|
|
|
|
2019-12-04 15:48:36 +00:00
|
|
|
Prefix ``!``
|
|
|
|
to set Category/engine
|
2015-11-17 22:13:30 +00:00
|
|
|
|
2019-12-04 15:48:36 +00:00
|
|
|
Prefix: ``:``
|
|
|
|
to set language
|
2015-11-17 22:13:30 +00:00
|
|
|
|
2019-12-04 15:48:36 +00:00
|
|
|
Prefix: ``?``
|
|
|
|
to add engines and categories to the currently selected categories
|
2015-11-17 22:13:30 +00:00
|
|
|
|
2019-12-04 15:48:36 +00:00
|
|
|
Abbrevations of the engines and languages are also accepted. Engine/category
|
|
|
|
modifiers are chainable and inclusive (e.g. with :search:`!it !ddg !wp qwer
|
|
|
|
<?q=%21it%20%21ddg%20%21wp%20qwer>` search in IT category **and** duckduckgo
|
|
|
|
**and** wikipedia for ``qwer``).
|
2015-11-17 22:13:30 +00:00
|
|
|
|
2019-12-04 15:48:36 +00:00
|
|
|
See the :search:`/preferences page <preferences>` for the list of engines,
|
|
|
|
categories and languages.
|
2015-11-17 22:13:30 +00:00
|
|
|
|
|
|
|
Examples
|
2019-12-12 18:20:56 +00:00
|
|
|
========
|
2015-11-17 22:13:30 +00:00
|
|
|
|
|
|
|
Search in wikipedia for ``qwer``:
|
2019-12-04 15:48:36 +00:00
|
|
|
|
|
|
|
- :search:`!wp qwer <?q=%21wp%20qwer>` or
|
|
|
|
- :search:`!wikipedia qwer :search:<?q=%21wikipedia%20qwer>`
|
2015-11-17 22:13:30 +00:00
|
|
|
|
|
|
|
Image search:
|
2019-12-04 15:48:36 +00:00
|
|
|
|
|
|
|
- :search:`!images Cthulhu <?q=%21images%20Cthulhu>`
|
2015-11-17 22:13:30 +00:00
|
|
|
|
|
|
|
Custom language in wikipedia:
|
2019-12-04 15:48:36 +00:00
|
|
|
|
|
|
|
- :search:`:hu !wp hackerspace <?q=%3Ahu%20%21wp%20hackerspace>`
|
2021-01-18 16:21:56 +00:00
|
|
|
|
|
|
|
Multilingual Search
|
|
|
|
===================
|
|
|
|
|
|
|
|
Searx does not support true multilingual search.
|
|
|
|
You have to use the language prefix in your search query when searching in a different language.
|
|
|
|
|
|
|
|
But there is a workaround:
|
|
|
|
By adding a new search engine with a different language, Searx will search in your default and other language.
|
|
|
|
|
|
|
|
Example configuration in settings.yml for a German and English speaker:
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
|
|
search:
|
|
|
|
language : "de"
|
|
|
|
...
|
|
|
|
|
|
|
|
engines:
|
|
|
|
- name : google english
|
|
|
|
engine : google
|
|
|
|
language : english
|
|
|
|
...
|
|
|
|
|
|
|
|
When searching, the default google engine will return German results and "google english" will return English results.
|