<commit_before>==========
Search API
==========

The search supports both ``GET`` and ``POST``.

Furthermore, two enpoints ``/`` and ``/search`` are available for querying.


``GET /``

``GET /search``

Parameters
==========

.. sidebar:: Further reading ..

   - :ref:`engines generic`
   - :ref:`configured engines`
   - :ref:`engine settings`
   - :ref:`engine file`

``q`` : required
  The search query.  This string is passed to external search services.  Thus,
  searx supports syntax of each search service.  For example, ``site:github.com
  searx`` is a valid query for Google.  However, if simply the query above is
  passed to any search engine which does not filter its results based on this
  syntax, you might not get the results you wanted.

  See more at :ref:`search-syntax`

``categories`` : optional
  Comma separated list, specifies the active search categories

``engines``: optional
  Comma separated list, specifies the active search engines.

``lang``: default ``all``
  Code of the language.

``pageno``: default ``1``
  Search page number.

``time_range``: optional
  [ ``day``, ``month``, ``year`` ]

  Time range of search for engines which support it.  See if an engine supports
  time range search in the preferences page of an instance.

``format``: optional
  [ ``json``, ``csv``, ``rss`` ]

  Output format of results.

``results_on_new_tab``: default ``0``
  [ ``0``, ``1`` ]

  Open search results on new tab.

``image_proxy``: default ``False``
  [  ``True``, ``False`` ]

  Proxy image results through searx.

``autocomplete``: default *empty*
  [ ``google``, ``dbpedia``, ``duckduckgo``, ``startpage``, ``wikipedia`` ]

  Service which completes words as you type.

``safesearch``:  default ``None``
  [ ``0``, ``1``, ``None`` ]

  Filter search results of engines which support safe search.  See if an engine
  supports safe search in the preferences page of an instance.

``theme``: default ``oscar``
  [ ``oscar``, ``simple``, ``legacy``, ``pix-art``, ``courgette`` ]

  Theme of instance.

  Please note, available themes depend on an instance.  It is possible that an
  instance administrator deleted, created or renamed themes on his/her instance.
  See the available options in the preferences page of the instance.

``oscar-style``: default ``logicodev``
  [ ``pointhi``, ``logicodev`` ]

  Style of Oscar theme.  It is only parsed if the theme of an instance is
  ``oscar``.

  Please note, available styles depend on an instance.  It is possible that an
  instance administrator deleted, created or renamed styles on his/her
  instance. See the available options in the preferences page of the instance.

``enabled_plugins``: optional
  List of enabled plugins.

  :default: ``HTTPS_rewrite``, ``Self_Informations``,
    ``Search_on_category_select``, ``Tracker_URL_remover``

  :values: [ ``DOAI_rewrite``, ``HTTPS_rewrite``, ``Infinite_scroll``,
    ``Vim-like_hotkeys``, ``Self_Informations``, ``Tracker_URL_remover``,
    ``Search_on_category_select`` ]

``disabled_plugins``: optional
  List of disabled plugins.

  :default: ``DOAI_rewrite``, ``Infinite_scroll``, ``Vim-like_hotkeys``
  :values: ``DOAI_rewrite``, ``HTTPS_rewrite``, ``Infinite_scroll``,
    ``Vim-like_hotkeys``, ``Self_Informations``, ``Tracker_URL_remover``,
    ``Search_on_category_select``

``enabled_engines``: optional : *all* :origin:`engines <searx/engines>`
  List of enabled engines.

``disabled_engines``: optional : *all* :origin:`engines <searx/engines>`
  List of disabled engines.
<commit_msg>docs(dev): fix minor markup typos<commit_after>==========
Search API
==========

The search supports both ``GET`` and ``POST``.

Furthermore, two enpoints ``/`` and ``/search`` are available for querying.


``GET /``

``GET /search``

Parameters
==========

.. sidebar:: Further reading ..

   - :ref:`engines generic`
   - :ref:`configured engines`
   - :ref:`engine settings`
   - :ref:`engine file`

``q`` : required
  The search query.  This string is passed to external search services.  Thus,
  searx supports syntax of each search service.  For example, ``site:github.com
  searx`` is a valid query for Google.  However, if simply the query above is
  passed to any search engine which does not filter its results based on this
  syntax, you might not get the results you wanted.

  See more at :ref:`search-syntax`

``categories`` : optional
  Comma separated list, specifies the active search categories

``engines`` : optional
  Comma separated list, specifies the active search engines.

``lang`` : default ``all``
  Code of the language.

``pageno`` : default ``1``
  Search page number.

``time_range`` : optional
  [ ``day``, ``month``, ``year`` ]

  Time range of search for engines which support it.  See if an engine supports
  time range search in the preferences page of an instance.

``format`` : optional
  [ ``json``, ``csv``, ``rss`` ]

  Output format of results.

``results_on_new_tab`` : default ``0``
  [ ``0``, ``1`` ]

  Open search results on new tab.

``image_proxy`` : default ``False``
  [  ``True``, ``False`` ]

  Proxy image results through searx.

``autocomplete`` : default *empty*
  [ ``google``, ``dbpedia``, ``duckduckgo``, ``startpage``, ``wikipedia`` ]

  Service which completes words as you type.

``safesearch`` :  default ``None``
  [ ``0``, ``1``, ``None`` ]

  Filter search results of engines which support safe search.  See if an engine
  supports safe search in the preferences page of an instance.

``theme`` : default ``oscar``
  [ ``oscar``, ``simple``, ``legacy``, ``pix-art``, ``courgette`` ]

  Theme of instance.

  Please note, available themes depend on an instance.  It is possible that an
  instance administrator deleted, created or renamed themes on his/her instance.
  See the available options in the preferences page of the instance.

``oscar-style`` : default ``logicodev``
  [ ``pointhi``, ``logicodev`` ]

  Style of Oscar theme.  It is only parsed if the theme of an instance is
  ``oscar``.

  Please note, available styles depend on an instance.  It is possible that an
  instance administrator deleted, created or renamed styles on his/her
  instance. See the available options in the preferences page of the instance.

``enabled_plugins`` : optional
  List of enabled plugins.

  :default: ``HTTPS_rewrite``, ``Self_Informations``,
    ``Search_on_category_select``, ``Tracker_URL_remover``

  :values: [ ``DOAI_rewrite``, ``HTTPS_rewrite``, ``Infinite_scroll``,
    ``Vim-like_hotkeys``, ``Self_Informations``, ``Tracker_URL_remover``,
    ``Search_on_category_select`` ]

``disabled_plugins``: optional
  List of disabled plugins.

  :default: ``DOAI_rewrite``, ``Infinite_scroll``, ``Vim-like_hotkeys``
  :values: ``DOAI_rewrite``, ``HTTPS_rewrite``, ``Infinite_scroll``,
    ``Vim-like_hotkeys``, ``Self_Informations``, ``Tracker_URL_remover``,
    ``Search_on_category_select``

``enabled_engines`` : optional : *all* :origin:`engines <searx/engines>`
  List of enabled engines.

``disabled_engines`` : optional : *all* :origin:`engines <searx/engines>`
  List of disabled engines.

{'fraction_non_alphanumeric': 0.14988719684151156, 'fraction_numerical': 0.001692047377326565, 'mean_word_length': 4.426931905126243, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4476245', 'n_tokens_mistral': 2212, 'n_tokens_neox': 2144, 'n_words': 784}