This project is mirrored from https://github.com/searx/searx. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 16 Jan, 2019 1 commit
  2. 10 Jan, 2019 1 commit
  3. 09 Jan, 2019 1 commit
    • Nicolas Gelot's avatar
      Fix invalid type of engines during merge result · db62af27
      Nicolas Gelot authored
      Engines was stored in set and casted in list, it leads to
      issue during merge of result. This patch fixes the engines
      container to a list to be able to use json serialization.
      
      Below the error spotted:
      ```
         File "/usr/local/searx/searx/results.py", line 233, in _merge_result
           duplicated['engines'].add(result['engine'])
       AttributeError: 'list' object has no attribute 'add'
      ```
      db62af27
  4. 01 Dec, 2017 1 commit
  5. 03 Nov, 2017 1 commit
    • Noémi Ványi's avatar
      results: make engines of results set · 59c02e8e
      Noémi Ványi authored
      Previously, if a same result was returned from the
      same engine, the name of the engine would be added
      more than once. To eliminate engine name duplication
      engine list was changed to set.
      59c02e8e
  6. 26 Jul, 2017 1 commit
  7. 20 Jul, 2017 1 commit
  8. 12 Jul, 2017 1 commit
  9. 22 May, 2017 1 commit
  10. 15 May, 2017 1 commit
  11. 16 Jan, 2017 1 commit
  12. 30 Dec, 2016 1 commit
  13. 19 Nov, 2016 1 commit
  14. 02 Nov, 2016 1 commit
    • dalf's avatar
      Clean up the architecture · 67e11c42
      dalf authored
      Purposes :
      - isolate the plugins calls
      - distinction between parsing the web request and running the search (Search class). To be able to test code easily, to run searx code outside a web server, to filter the search query parameters with plugins more easily, etc...
      
      Details :
      - request.request_data contains request.form or request.args (initialize inside pre_request() function)
      - Query class is renamed RawTextQuery
      - SearchQuery class defines all search parameters
      - get_search_query_from_webapp create a SearchQuery instance (basically the previous Search.__init__ code)
      - Search class and SearchWithPlugins class takes a SearchQuery instance as class constructor parameter
      - SearchWithPlugins class inherites from Search class, and run plugins
      - A dedicated function search_with_plugins executes plugins to have a well define locals() (which is used by the plugins code).
      - All plugins code is executed inside the try...except block (webapp.py, index function)
      - advanced_search HTTP parameter value stays in webapp.py (it is only part of UI)
      - multiple calls to result_container.get_ordered_results() doesn't compute the order multiple time (note : this method was call only once before)
      - paging value is stored in the result_container class (compute in the extend method)
      - test about engine.suspend_end_time is done during search method call (instead of __init__)
      - check that the format parameter value is one of these : html, rss, json, rss (before the html value was assumed but some text formatting wasn't not done)
      67e11c42
  15. 14 Aug, 2016 1 commit
  16. 06 Aug, 2016 2 commits
  17. 16 Jul, 2016 2 commits
  18. 11 Jul, 2016 1 commit
  19. 10 Jul, 2016 1 commit
  20. 27 Jun, 2016 1 commit
  21. 17 Apr, 2016 1 commit
  22. 30 Mar, 2016 1 commit
  23. 26 Feb, 2016 1 commit
  24. 26 Oct, 2015 1 commit
  25. 03 Oct, 2015 2 commits