Adam Tauber
8e3bd3fcbd
[mod] add py2 deprecation warning to webapp
5 years ago
Marc Abonce Seguin
495ae59b31
hide suggestions box if empty
...
This bug happens only in python3
because map returns an iterator.
5 years ago
Adam Tauber
731e34299d
Merge pull request #1744 from dalf/optimizations
...
[mod] speed optimization
5 years ago
lorddavidiii
5e5ff0cbf8
webapp.py: use html.escape if cgi.escape is not available
...
- cgi.escape was removed in python 3.8
- also use html.escape in framalibre.py
5 years ago
Dalf
85b3723345
[mod] speed optimization
...
compile XPath only once
avoid redundant call to urlparse
get_locale(webapp.py): avoid useless call to request.accept_languages.best_match
5 years ago
Marc Abonce Seguin
b0f89ed477
[fix] preserve bangs in corrections
5 years ago
Noémi Ványi
a6f20caf32
add initial support for offline engines && command engine
5 years ago
Alexandre Flament
72029d27de
[enh] Add timeout limit per request ( #1640 )
...
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
5 years ago
Marc Abonce Seguin
59b1370824
[fix] small fixes in preferences view's text
5 years ago
Dalf
2fab23ab9a
[fix] fix the debug message "starting webserver on ip:port"
...
was "port:ip"
5 years ago
Alexandre Flament
554a21e1d0
[enh] Add Server-Timing header ( #1637 )
...
Server Timing specification: https://www.w3.org/TR/server-timing/
In the browser Dev Tools, focus on the main request, there are the responses per engine in the Timing tab.
5 years ago
Dalf
c7220b40ea
Suggestions: use RawTextQuery to make the suggestions URLs. Update all themes accordingly.
5 years ago
Marc Abonce Seguin
6626f01365
[fix] preserve bangs in suggestions and corrections
5 years ago
Marc Abonce Seguin
40272b0044
[fix] never pass bangs to autocomplete suggestions
5 years ago
rachmadaniHaryono
535fff109f
fix: dev: python3 dict keys jsonify
5 years ago
Venca24
e8734b37c9
[FIX] image_proxify
6 years ago
Noémi Ványi
b63d645a52
Revert "remove 'all' option from search languages"
...
This reverts commit 4d1770398a
.
6 years ago
Marc Abonce Seguin
772c048d01
refactor engine's search language handling
...
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.
7 years ago
Adam Tauber
b9d4c0523e
[fix] get doi_rewriters from settings - fixes #1245
7 years ago
Adam Tauber
b70ce84eb6
[enh] update translations - add taiwanese and filipino
7 years ago
Adam Tauber
49b845051f
Merge pull request #973 from MarcAbonce/languages
...
Remove 'all' option from search languages
7 years ago
marc
4d1770398a
remove 'all' option from search languages
7 years ago
Adam Tauber
e060aedc16
[enh] make custom oscar option configurable from url
7 years ago
Adam Tauber
f65f90bf3c
[fix] autocompleter py3 compatibility - fixes #1088
7 years ago
yujunqiang
ed1c78d923
fix bug: TypeError: set(['bing', 'google']) is not JSON serializable, when curl ' http://127.0.0.1:8888/?q=xxxxxxxx&categories=general&format=json '
7 years ago
Noémi Ványi
1b10abfc92
minor fixes of doi resolver
...
Closes #1047
7 years ago
jibe-b
575159b194
[enh] oa_doi_rewrite plugin broadens doai_rewrite
7 years ago
Adam Tauber
5f758b2d39
[mod] compress saved preferences in url
7 years ago
Noémi Ványi
e73cb14889
fix hmac python3 compatibility
7 years ago
misnyo
ae99f9070c
[fix] static path fixed in templates and webapp, line endings fixed
7 years ago
Adam Tauber
f2b13a7de0
[enh] allow default empty values for normal and result proxies
7 years ago
Noémi Ványi
243d3e4298
show engine errors in infobox && add new error alert
7 years ago
Adam Tauber
38d6ba4066
[enh] generate search url of saved preferences
7 years ago
Adam Tauber
6d76d9b202
[fix] load engines if debug mode is enabled using uwsgi
7 years ago
Alexandre Flament
87f673336f
[fix] rss feed : the jinja template was not found when the rss feed returns an valid feed including an error.
7 years ago
Alexandre Flament
9c91ab33f8
[mod] settings.yml can be /etc/searx/settings.yml
...
The exact order is
* first from SEARX_SETTINGS_PATH,
* if not found then from searx code base,
* if not found then from /etc/searx/settings.yml
* if not found an exception stops searx loading
7 years ago
Alexandre Flament
ee080feaed
[mod] the static and templates directories can be defined in the settings.yml
7 years ago
Adam Tauber
52e615dede
[enh] py3 compatibility
8 years ago
Alexandre Flament
181c12ae04
[mod] upgrade requirements.txt
8 years ago
Alexandre Flament
e67dfaaac7
Merge branch 'master' into flask_perimeter
8 years ago
Alexandre Flament
15eef0ebdb
[enh] validate input and raise an exception inside search.py. The exception message is output in json and rss format.
8 years ago
Alexandre Flament
7fdfeca3a4
[mod] add a __common__ template that can't be selected but that provides a common place for shared templates.
...
What has been moved into this template :
* opensearch*.xml is always the same whatever the themes.
* the text inside */about.html
8 years ago
David A Roberts
1d30141c20
[enh] show spelling corrections
8 years ago
Alexandre Flament
7a16aca346
Merge branch 'master' into flask_perimeter
8 years ago
Dalf
06bea82935
[mod] /config API : add language_support, paging, safesearch, supported_languages, time_range_support, timeout fields.
8 years ago
Alexandre Flament
84a2c97a65
[mod] searx uses flask framework only in webapp.py. Make migration to another framework easier.
8 years ago
Adam Tauber
7388067f15
[fix] load engines with uwsgi too
8 years ago
Adam Tauber
8bff42f049
Merge branch 'master' into languages
8 years ago
Adam Tauber
68cbf0448f
[fix] do not reload engines twice if started with debug mode
8 years ago
Adam Tauber
a605377c40
[enh] explicit engine init
8 years ago