Commit Graph

1600 Commits (c59c76e6ee14f0417ad55ecf0f888f62f34f1f6d)

Author SHA1 Message Date
dalf fbb080f358 Change plugin API :
- pre_search(request, search)
- post_search(request, search)
- on_result(request, search, result)

with
- request is the Flask request
- search a searx.Search instance
- result a searx result as usual
8 years ago
dalf 67e11c42b9 Clean up the architecture
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)
8 years ago
Adam Tauber 142cd87095 [fix] menu style in pointhi oscar theme 8 years ago
Adam Tauber 9782633054 [fix] menu without js - closes #747 8 years ago
Noémi Ványi 1490d6bc93 add time range search for flickr 8 years ago
Noémi Ványi 5c02b9ef31 add time range support for bing images 8 years ago
Noémi Ványi d2e0cbafb2 add time range search for youtube noapi 8 years ago
Noémi Ványi f70d405202 add time range search for bing news 8 years ago
Noémi Ványi e3d748ded4 show time range support in preferences 8 years ago
Adam Tauber 6243639f01 [mod] do not proxify images if image proxy is not set 8 years ago
Noémi Ványi 6334fca11c add version info to config endpoint 8 years ago
Adam Tauber 1b9045ed89 [enh] use morty proxy for image proxification too if it is configured 8 years ago
Adam Tauber a67a4bf2c0 [enh] allow morty proxy without hmac key 8 years ago
Adam Tauber 574d9d40d2 Merge pull request #697 from Eig8phei/http1.1
serve pages with HTTP/1.1
8 years ago
dalf 3e7554422b [mod] the environment variable SEARX_DEBUG can override the general.debug value in settings.yml 8 years ago
Adam Tauber e249698b26 Merge pull request #737 from dalf/ixquick
[fix] ixquick : fetch results from ixquick.eu instead of ixquick.com
8 years ago
dalf 972f32d973 [fix] ixquick : fetch results from ixquick.eu instead of ixquick.com, close #727 8 years ago
Noémi Ványi db8c2ebc3f [fix] images modal with infinite scroll 8 years ago
Adam Tauber 760cb3c5af Merge pull request #734 from dalf/seeks_url
[fix] seeks URLS, close #731
8 years ago
Alexandre Flament a88768efd8 Merge branch 'master' into http1.1 8 years ago
Noémi Ványi 53c9fde992 fix kickass torrents engine 8 years ago
Adam Tauber 218857999e Merge pull request #726 from mmuman/opensearch_shortname
[fix] set the title on the opensearch link tag
8 years ago
Adam Tauber d5c0dcd18a [fix] unicode url proxiing 8 years ago
Adam Tauber 1be6e72d51 [enh] add result proxy support - #707 8 years ago
Adam Tauber 19a6ca0b68 [enh] use HMAC for image proxy url verification 8 years ago
Alexandre Flament 5b21a7fb65 Merge branch 'master' into opensearch_shortname 8 years ago
dalf cae84e71a5 [fix] seeks URLS, close #731 8 years ago
Alexander Minges 3c5883408c initial commit of pdbe engine
Adds support for queries to the Protein Data Bank Europe (PDBe).
8 years ago
François Revol 96cfdc77d2 [fix] set the title on the opensearch link tag
Firefox uses the title attributes instead of the ShortName from the xml file
as set in 0fbd7052 which closed #405
8 years ago
Pydo beff8c6007 Merge branch 'master' of https://github.com/asciimoo/searx into feature/seedpeer-engine-integration 8 years ago
Pydo 01844b6f04 Set default categories for seedpeer provider 8 years ago
Adam Tauber dceb903114 [mod] disallow search results for robots 8 years ago
Pydo 55a5b686ed Merge branch 'master' of https://github.com/asciimoo/searx into feature/seedpeer-engine-integration
Resolved conflict searx/settings.yml
8 years ago
Pydo 6f87bf2a1c Disabled seepeer.eu by default since it does not support https 8 years ago
Adam Tauber 812ade82b1 [fix] robot test engine names 8 years ago
Adam Tauber 86daef2063 [fix] do not allow underscore in engine names - closes #708 8 years ago
Adam Tauber bee7b497a3 [mod] rename "default" theme to "legacy" 8 years ago
marc d1d4ed4376 [fix] results with digbit don't truncate anymore 8 years ago
Eig8phei f90eb428c6 serve pages with HTTP/1.1 8 years ago
Lorenzo J. Lucchini 2bc42b378d Remove unrelated change that mistakenly ended up into this branch 8 years ago
firebovine e145fdb86d #607 - noapi fix 8 years ago
Lorenzo J. Lucchini 05206f86e3 Adding Urban Dictionary xpath engine 8 years ago
Lorenzo J. Lucchini a8907224a1 Improving Wolfram Alpha search hit content
Making WA search hits contain
- the (parsed) input inside the "title" instead of just "Wolfram|Alpha", to better match other hit titles and to confirm correct parsing of input to the user
- the first output field that contains any text (skipping ones that are only pictures; this is usually the most meaningful "result" field) instead of the raw input as the "content", making it additionally possible to obtain WA computations from JSON API calls
8 years ago
marc 09ee2aa69d [fix] Result text in Wolfram|Alpha (#607) 8 years ago
firebovine baeb3ff911 fix xpath expressions for urban dictionary 8 years ago
Adam Tauber 8d4dd3c515 [fix] 404 HTTP status on not found pages - closes #681 8 years ago
Adam Tauber ce371f766a [enh] version 0.10.0
closes #659
8 years ago
Adam Tauber ea19e19ff2 [enh] translation updates 8 years ago
Adam Tauber 3144ec1d59 [fix] unicode urls 8 years ago
potato 983415bc38 [enh] is_valid_lang moved to utils 8 years ago
potato b7d578ae80 [enh] engine header comments 8 years ago
potato 5ed9846bbf [fix] revert the port change 8 years ago
potato 8c72a22757 [enh] api_key usage, disable the engine by default 8 years ago
potato c051e6a2c3 [fix] pep8 8 years ago
potato ab471fd13b [enh] mymemory translated engine added for multi-word translations 8 years ago
potato 22bd39fd42 [fix] only 1-word search triggers the engine 8 years ago
potato 7bf1013c15 [enh] removed missing params; [fix] pep8 8 years ago
potato bc806bfab1 [fix] no lambda anymore, cgi.escape 8 years ago
potato 5416f0f248 [enh] dictionary engine renamed to dictzone 8 years ago
potato 84ff6e289e [enh] filter non-existing language code/name containing requests 8 years ago
potato b808a2e266 [fix] don't merge with suggestions 8 years ago
potato 3f4cc2146c [enh] return results instead of answers 8 years ago
potato 9d08c81f47 Merge branch 'master' of https://github.com/asciimoo/searx 8 years ago
potato f4525880ed [enh] dictionary engine added 8 years ago
Adam Tauber 55abf07a4f [fix] thread safe threaded_requests() function 8 years ago
Adam Tauber b816752719 [enh] more compact image results ++ fixed modal links 8 years ago
Adam Tauber 3a1b6fa818 [fix] replace modal-content class to prevent remote content load
details: http://stackoverflow.com/questions/18378720/bootstrap-3-with-remote-modal
8 years ago
Adam Tauber fa5bc3a563 [fix] use threading to recover after incomplete request crashes - closes #651 #662 8 years ago
Adam Tauber b27f07af23 [enh] socks proxy support 8 years ago
Adam Tauber da4f1c2512 [mod] truncate result content in html - closes #224 8 years ago
Adam Tauber 94b5f2ca77 [fix] result url wrap - closes #652 8 years ago
Adam Tauber 959497e26b [fix] remove trailing whitespaces 8 years ago
Pydo 41ce76e9c9 Merge branch 'master' of https://github.com/asciimoo/searx into feature/seedpeer-engine-integration 8 years ago
Pydo 2c2123b2e8 Added seepeer to config and added seepeer search parser 8 years ago
Adam Tauber 465d47283f [fix] 404 page localization #2 8 years ago
Adam Tauber c2f4d4449d [fix] 404 page localization 8 years ago
Adam Tauber b4b0231617 [fix] links in new tabs without js ++ noopener bug fix - closes #674 8 years ago
Adam Tauber 7591c8bfe3 Merge pull request #672 from kvch/self-info-paging
Self information on later pages
8 years ago
Adam Tauber 3043c404e4 Merge pull request #671 from kvch/custom-404
Custom 404 message - fixes #317
8 years ago
Noemi Vanyi aa227180e2 remove self info answers from pages after first one 8 years ago
Noemi Vanyi 0056c4035e add custom 404 page 8 years ago
Adam Tauber b72aec0a9b [fix] remove btdigg - see https://torrentfreak.com/btdigg-shut-down-due-to-torrent-spam-for-now-160711/ 8 years ago
Adam Tauber 32604be790 [fix] piratebay engine - using pirateproxy.red - see https://proxybay.tv/ 8 years ago
Adam Tauber f693a54ad7 Merge pull request #664 from kvch/uncapitalize-searx
uncapitalize searx in templates
8 years ago
Adam Tauber 13bed1f872 Merge pull request #639 from kvch/digbt-engine
add digbt engine - fixes #638
8 years ago
Noémi Ványi 4bd44cd98f uncapitalize searx in templates 8 years ago
David A Roberts 45120bc711 Add Hoogle search engine 8 years ago
David A Roberts 1e9dab08e6 [fix] behaviour for page_size>1 and first_page_num>0
eg. pageno=1,21,41,... instead of 20,40,60,...
8 years ago
David A Roberts 413e143707 [fix] don't merge results with distinct fragments 8 years ago
Noémi Ványi d320dd0efc diable digbt engine in settings.yml 8 years ago
Noemi Vanyi 3a1c5876b1 add digbt engine
Unfortunately, it is quite slow so it is disabled.
Furthermore, the display of number of files is wrong
on digbt.org, so it is not displayed on searx.
8 years ago
Adam Tauber 104cdb7d03 [fix] remove unused imports ++ int token timestamp by default 8 years ago
Adam Tauber eb57481450 [fix] google images paging - closes #571 8 years ago
David A Roberts 61fe5daf30 Add Microsoft Academic search engine 8 years ago
Adam Tauber 31866d9f33 Merge pull request #629 from stepshal/E305
Add missing blank lines after class or function definition.
8 years ago
stepshal 7e16c9d360 Add missing blank lines after class or function definition. 8 years ago
Adam Tauber 827aba4599 Merge pull request #658 from davidar/scroll
[enh] infinite scroll
8 years ago
David A Roberts 678b9e994a [enh] infinite scroll
resolves #649
8 years ago
Adam Tauber 4fae62cd88 Merge pull request #656 from cy8aer/openrepos
openrepos: Meego/Sailfish application repository
8 years ago
Adam Tauber 975bd5beb5 [fix] oscar grunt css build 8 years ago