Alexandre Flament
58a6c045c8
[mod] replace references request.request_data (GET or POST parameters) by request.form (based on merge of POST and GET parameters)
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
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
Alexandre Flament
a88768efd8
Merge branch 'master' into http1.1
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
Adam Tauber
dceb903114
[mod] disallow search results for robots
8 years ago
Eig8phei
f90eb428c6
serve pages with HTTP/1.1
8 years ago
Adam Tauber
8d4dd3c515
[fix] 404 HTTP status on not found pages - closes #681
8 years ago
Adam Tauber
fa5bc3a563
[fix] use threading to recover after incomplete request crashes - closes #651 #662
8 years ago
Adam Tauber
da4f1c2512
[mod] truncate result content in html - closes #224
8 years ago
Adam Tauber
b4b0231617
[fix] links in new tabs without js ++ noopener bug fix - closes #674
8 years ago
Noemi Vanyi
0056c4035e
add custom 404 page
8 years ago
Noemi Vanyi
16a8641649
advanced-search: panel is visible when checked before
8 years ago
Noemi Vanyi
93c0c49e9a
add time range search with yahoo
8 years ago
Adam Tauber
21c5fb1c45
[fix] pep8
8 years ago
Adam Tauber
5b5478bbd9
[fix] compute the order of results only once per search
8 years ago
Adam Tauber
485da54961
[mod][fix] use the average of results number ++ do not display smaller result number than the actual result count - closes #600
8 years ago
stepshal
cd9b494cb5
Fix quantity of blank lines after code object.
8 years ago
Adam Tauber
fbbb307f2e
[enh] add engine shortcut to config api
8 years ago
Adam Tauber
257e52954a
[enh][fix] update to latest dependencies ++ fix tests & travis test runner
...
WARNING: dependency changes
8 years ago
Adam Tauber
2f7752b410
[enh] display number of results
8 years ago
Noemi Vanyi
d43d9727a3
[enh] add server_settings call - closes #566
8 years ago
Adam Tauber
27218b85fa
[fix] missing import
8 years ago
Adam Tauber
bd361e60d8
Revert "use ngettext for plurals"
9 years ago
Dmitry Mikhirev
6d1d8a8f8d
use ngettext
9 years ago
Noemi Vanyi
adb1169fa3
add description to a var that seems to be unused
9 years ago
Noemi Vanyi
7daf98933d
follow up blocked_engines renaming in templates
9 years ago
Noemi Vanyi
5867e97966
more follow ups in new preferences
9 years ago
Noemi Vanyi
8c4db08443
rename blocked engines to diabled engines
9 years ago
Noemi Vanyi
006841c4ff
minor grammar fix in error message
9 years ago
Noemi Vanyi
fe691a0988
new preferences handling
...
Preferences class was introduced in order to handle user preferences. Right now
it parses cookies and the form in preferences. Also it can retrieve settings
based on the name of the setting.
ATTENTION
Please note that engine preferences are handled differently from now on. So it
introduces incompatible changes. Every user who has saved preferences should reset and
save his/her settings again.
This change was needed, because everytime a default disabled engine was
added saved user preferences would broke. Now engine setting tracking is
fixed.
9 years ago
Adam Tauber
fff9460238
Merge pull request #522 from jibe-b/master
...
add BASE engine in category "Science"
9 years ago
a01200356
94cb3a7f11
[enh] multilingual autocomplete
...
implemented for wikipedia, qwant and google
9 years ago
jibe-b
092e15cc1d
[enh] Add BASE engine in category Science. Basic and advanced search.
9 years ago
Adam Tauber
0f518e489e
[fix] csv results filename encoding
9 years ago
Adam Tauber
bc81eda64b
[fix] opensearch image issue - closes #507
9 years ago
Adam Tauber
0fbd705259
[enh] settings option to change instance name - closes #450
9 years ago
Thomas Pointhuber
8bc0f04f4b
[fix] typo
9 years ago
Adam Tauber
fab698003f
[mod] move wolframalpha to "science" category
9 years ago
Adam Tauber
29dfd9679b
[fix] use base_url in http redirects - closes #451
9 years ago
Adam Tauber
b6c3cb0bdd
[enh][mod] result handling refactor
...
Several changes has been made:
- Parallel result merge
- Scoring algorithm slightly changed (see result_score())
- Proper Thread locking on global data manipulation
9 years ago
Adam Tauber
3a8eafcc6b
[fix] cookie parameter type
9 years ago
Adam Tauber
43cd8e0c41
[enh] default settings option to safe_search - #396
9 years ago
Adam Tauber
c1d9cfd9ae
[enh] default settings option to autocomplete backend - #396
9 years ago
Adam Tauber
1fcf066a81
[mod] change settings file structure according to #314
9 years ago
Adam Tauber
d0830d4edf
[enh] add settings option to set listening address - closes #397
9 years ago
Adam Tauber
ff322d3373
[fix] debug message parameter
9 years ago
Adam Tauber
6ef7c3276c
[fix] reverse proxy non-root url fix
9 years ago
Thomas Pointhuber
0978f10887
[fix] do not hide categorie inside preferences if there is no engine activated
10 years ago
Alexandre Flament
d4d2dd9cb3
[enh] oscar theme: display engine response times in the preferences
10 years ago
Adam Tauber
18e7d60702
Merge pull request #298 from dalf/ssl
...
[fix] SSL : SNI support
10 years ago
Alexandre Flament
187617498a
Log an error if the ndg-httpsclient, pyopenssl and pyasn1 packages are not installed.
...
See #298
10 years ago
Adam Tauber
1f0e6ce65b
Merge pull request #297 from dalf/proxies
...
[enh] Implement http proxies for outgoing requests. (see #236 )
10 years ago
Adam Tauber
952473d297
Merge pull request #246 from Cqoicebordel/pix-arts
...
New theme !
10 years ago
Alexandre Flament
83e48fa89b
flake8 fix
10 years ago
Alexandre Flament
cde37be4f5
[enh] basic support for http proxy (see #236 )
10 years ago
Adam Tauber
d2a636f75d
[mod] https rewrite pluginification
10 years ago
Adam Tauber
dd84814b68
[enh] plugins: client side dependency support
10 years ago
Adam Tauber
f59daa4a4b
[fix] do not escape empty result content - closes #291
10 years ago
Adam Tauber
b2e026dde2
[mod] remove image proxy requests from the connection pool
10 years ago
Adam Tauber
6f73f4e7a4
[fix] ordered categories in preferences - closes #258
10 years ago
Adam Tauber
1184f45ca5
[enh] reset default preferences
10 years ago
Luc Didry
7004de6aa7
Fixes #271
...
The opensearch method is now the method set in the preferences.
As before, POST by default and GET for Chrome/Chromium which doesn't
handle POST
10 years ago
Adam Tauber
22c4195c89
[fix] request args
10 years ago
Adam Tauber
37c58fd9ca
[enh] plugin preferences - server-side ++ oscar theme
10 years ago
Adam Tauber
88aee611f7
[mod] merge GET, POST vars
10 years ago
Adam Tauber
cae22bfc76
[enh] per user plugin switch
10 years ago
Adam Tauber
00cc4dcbf4
[enh] plugin support basics ++ self ip plugin
10 years ago
Adam Tauber
d1b12f9016
[mod] search return value
10 years ago
Cqoicebordel
d740e7384a
New Theme, Pix-art.
...
First commit
10 years ago
Cqoicebordel
bbb5e23551
Remove whitespace caused by Jinja commands
...
Adding this conf change will remove every newline created by a Jinja command (`{% %}`). It can save a bit of bandwidth.
10 years ago
Cqoicebordel
b5cbbcede4
LTR the about page correctly
10 years ago
Adam Tauber
e43f61069a
[fix] category name i18n - closes #221
10 years ago
Adam Tauber
df9cf9d09b
Merge branch 'rtl' of github.com:Cqoicebordel/searx
10 years ago
Adam Tauber
c711212662
[fix] image proxify utf urls
10 years ago
Thomas Pointhuber
832ea60e3d
[fix] pep8, tests
10 years ago
Thomas Pointhuber
e7de9674b1
[enh] add safesearch functionality
...
2 = strict
1 = moderate
0 = none
10 years ago
Adam Tauber
91f7c031d5
[fix] handle proxied https scheme with uwsgi
10 years ago
Adam Tauber
1de781a143
[enh] category specific engine deactivation - closes #205
10 years ago
Thomas Pointhuber
14079ea2b0
[fix] codec can't encode character inside image_proxify
10 years ago
Thomas Pointhuber
38302ef58b
[fix] hash error if url is including non ascii characters
10 years ago
Adam Tauber
b19e681cce
[enh] default disabled engines - closes #109
10 years ago
Adam Tauber
8de97dac03
[mod] pretty url separation
10 years ago
Adam Tauber
bac98a02cb
[mod] reduce cookie expirity time - fixes #204
10 years ago
Adam Tauber
78081baa8f
[enh] always enable inner autocompletition (server side only)
10 years ago
Adam Tauber
10891bdeab
Merge pull request #192 from dalf/connection-pool
...
[enh] improve response time. close #100
10 years ago
dalf
d07cfd9089
[enh] use one single http connection pool : improve response time. close #100
10 years ago
Cqoicebordel
816a2c5cbe
Move cookies in render()
10 years ago
Cqoicebordel
393d24ba50
Flake8
10 years ago
Cqoicebordel
1a24fd9c52
Add cookies to every requests
10 years ago
Cqoicebordel
b01b95194e
Allow non specific cookies
10 years ago
Adam Tauber
8cd7617054
[fix] opensearch xml mimetype - #184
10 years ago
dalf
1d51512152
Proxify most of images references
...
Create hash only when necessary
10 years ago