1. 06 Feb, 2020 1 commit
  2. 28 Jan, 2020 1 commit
  3. 19 Jan, 2020 1 commit
    • Nicolas Gelot's avatar
      Fix locale and search language · 443c45a9
      Nicolas Gelot authored
      Locale and search language was always defined with english value.
      
      This patch inits the locale on `pre_request` in order to define the
      default value of locale and language preferences.
      
      Plus the `best_match` function provided by flask babel library did not
      work as expected. So the function `match_language` provided
      by searx is used to detect that the language from Accepted-Language
      header can be used in searx project.
      
      Close: https://github.com/asciimoo/searx/issues/844
      Close: #35, #42
      443c45a9
  4. 22 Dec, 2019 1 commit
  5. 16 Nov, 2019 1 commit
  6. 15 Nov, 2019 1 commit
    • Dalf's avatar
      [mod] speed optimization · 85b37233
      Dalf authored
      compile XPath only once
      avoid redundant call to urlparse
      get_locale(webapp.py): avoid useless call to request.accept_languages.best_match
      85b37233
  7. 23 Oct, 2019 1 commit
  8. 16 Oct, 2019 1 commit
  9. 02 Aug, 2019 1 commit
    • Alexandre Flament's avatar
      [enh] Add timeout limit per request (#1640) · 72029d27
      Alexandre Flament authored
      The new url parameter "timeout_limit" set timeout limit defined in second.
      Example "timeout_limit=1.5" means the timeout limit is 1.5 seconds.
      
      In addition, the query can start with <[number] to set the timeout limit.
      
      For number between 0 and 99, the unit is the second :
      Example: "<30 searx" means the timeout limit is 3 seconds
      
      For number above 100, the unit is the millisecond:
      Example: "<850 searx" means the timeout is 850 milliseconds.
      
      In addition, there is a new optional setting: outgoing.max_request_timeout.
      If not set, the user timeout can't go above searx configuration (as before: the max timeout of selected engine for a query).
      
      If the value is set, the user can set a timeout between 0 and max_request_timeout using
      <[number] or timeout_limit query parameter.
      
      Related to #1077
      Updated version of PR #1413 from @isj-privacore
      72029d27
  10. 28 Jul, 2019 1 commit
  11. 27 Jul, 2019 1 commit
  12. 17 Jul, 2019 2 commits
  13. 02 Jul, 2019 1 commit
  14. 01 Jul, 2019 1 commit
  15. 17 May, 2019 1 commit
  16. 18 Jan, 2019 1 commit
  17. 07 Jan, 2019 1 commit
  18. 27 Mar, 2018 1 commit
    • Marc Abonce Seguin's avatar
      refactor engine's search language handling · 772c048d
      Marc Abonce Seguin authored
      Add match_language function in utils to match any user given
      language code with a list of engine's supported languages.
      
      Also add language_aliases dict on each engine to translate
      standard language codes into the custom codes used by the engine.
      772c048d
  19. 17 Mar, 2018 1 commit
  20. 18 Feb, 2018 1 commit
  21. 06 Dec, 2017 1 commit
  22. 05 Dec, 2017 1 commit
  23. 23 Nov, 2017 1 commit
  24. 15 Nov, 2017 1 commit
  25. 01 Nov, 2017 2 commits
  26. 25 Oct, 2017 1 commit
  27. 08 Sep, 2017 2 commits
  28. 20 Jul, 2017 1 commit
  29. 12 Jul, 2017 1 commit
  30. 10 Jul, 2017 1 commit
  31. 12 Jun, 2017 1 commit
  32. 22 May, 2017 1 commit
  33. 15 May, 2017 3 commits
  34. 23 Mar, 2017 1 commit
  35. 20 Jan, 2017 1 commit