search_syntax.rst 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. .. _search-syntax:
  2. =============
  3. Search syntax
  4. =============
  5. SearXNG allows you to modify the default categories, engines and search language
  6. via the search query.
  7. Prefix ``!``
  8. to set Category/engine
  9. Prefix: ``:``
  10. to set language
  11. Abbrevations of the engines and languages are also accepted. Engine/category
  12. modifiers are chainable and inclusive (e.g. with :search:`!it !ddg !wp qwer
  13. <?q=%21it%20%21ddg%20%21wp%20qwer>` search in IT category **and** duckduckgo
  14. **and** wikipedia for ``qwer``).
  15. See the :search:`/preferences page <preferences>` for the list of engines,
  16. categories and languages.
  17. Examples
  18. ========
  19. Search in wikipedia for ``qwer``:
  20. - :search:`!wp qwer <?q=%21wp%20qwer>` or
  21. - :search:`!wikipedia qwer :search:<?q=%21wikipedia%20qwer>`
  22. Image search:
  23. - :search:`!images Cthulhu <?q=%21images%20Cthulhu>`
  24. Custom language in wikipedia:
  25. - :search:`:hu !wp hackerspace <?q=%3Ahu%20%21wp%20hackerspace>`
  26. Multilingual Search
  27. ===================
  28. SearXNG does not support true multilingual search.
  29. You have to use the language prefix in your search query when searching in a different language.
  30. But there is a workaround:
  31. By adding a new search engine with a different language, SearXNG will search in your default and other language.
  32. Example configuration in settings.yml for a German and English speaker:
  33. .. code-block:: yaml
  34. search:
  35. language : "de"
  36. ...
  37. engines:
  38. - name : google english
  39. engine : google
  40. language : english
  41. ...
  42. When searching, the default google engine will return German results and "google english" will return English results.