Browse Source

[doc] add missing docs for the search.max_page setting

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Markus Heiser 1 month ago
parent
commit
08a90d46d6

+ 6 - 0
docs/admin/settings/settings_search.rst

@@ -12,6 +12,7 @@
      favicon_resolver: ""
      default_lang: ""
      ban_time_on_fail: 5
+     max_page: 0
      max_ban_time_on_fail: 120
      suspended_times:
        SearxEngineAccessDenied: 86400
@@ -75,6 +76,11 @@
        - fr
        - fr-BE
 
+``max_page``:
+  If engine supports paging, 0 means unlimited numbers of pages.  The value
+  is only applied if the engine itself does not have a max value that is
+  lower than this one.
+
 ``ban_time_on_fail``:
   Ban time in seconds after engine errors.
 

+ 1 - 0
searx/engines/ask.py

@@ -20,6 +20,7 @@ about = {
 categories = ['general']
 paging = True
 max_page = 5
+"""Ask.com has at max 5 pages."""
 
 # Base URL
 base_url = "https://www.ask.com/web"

+ 4 - 0
searx/engines/google.py

@@ -53,6 +53,10 @@ about = {
 categories = ['general', 'web']
 paging = True
 max_page = 50
+"""`Google: max 50 pages`_
+
+.. _Google: max 50 pages: https://github.com/searxng/searxng/issues/2982
+"""
 time_range_support = True
 safesearch = True
 

+ 5 - 0
searx/engines/google_images.py

@@ -47,6 +47,11 @@ about = {
 categories = ['images', 'web']
 paging = True
 max_page = 50
+"""`Google: max 50 pages`_
+
+.. _Google: max 50 pages: https://github.com/searxng/searxng/issues/2982
+"""
+
 time_range_support = True
 safesearch = True
 send_accept_language_header = True

+ 4 - 0
searx/engines/google_scholar.py

@@ -51,6 +51,10 @@ about = {
 categories = ['science', 'scientific publications']
 paging = True
 max_page = 50
+"""`Google: max 50 pages`_
+
+.. _Google: max 50 pages: https://github.com/searxng/searxng/issues/2982
+"""
 language_support = True
 time_range_support = True
 safesearch = False

+ 4 - 0
searx/engines/google_videos.py

@@ -61,6 +61,10 @@ about = {
 categories = ['videos', 'web']
 paging = True
 max_page = 50
+"""`Google: max 50 pages`
+
+.. _Google: max 50 pages: https://github.com/searxng/searxng/issues/2982
+"""
 language_support = True
 time_range_support = True
 safesearch = True