瀏覽代碼

[fix] add more description on possible search tpyes

Noémi Ványi 8 年之前
父節點
當前提交
2a9339f4b7
共有 2 個檔案被更改,包括 3 行新增1 行删除
  1. 1
    1
      searx/engines/mediawiki.py
  2. 2
    0
      searx/settings.yml

+ 1
- 1
searx/engines/mediawiki.py 查看文件

@@ -31,7 +31,7 @@ search_postfix = 'w/api.php?action=query'\
31 31
     '&format=json'\
32 32
     '&sroffset={offset}'\
33 33
     '&srlimit={limit}'\
34
-    '&srwhat={searchtype}'  # search for a near match in the title
34
+    '&srwhat={searchtype}'
35 35
 
36 36
 
37 37
 # do search-request

+ 2
- 0
searx/settings.yml 查看文件

@@ -215,6 +215,8 @@ engines:
215 215
     categories : it
216 216
     base_url : https://directory.fsf.org/
217 217
     number_of_results : 5
218
+# what part of a page matches the query string: title, text, nearmatch
219
+# title - query matches title, text - query matches the text of page, nearmatch - nearmatch in title
218 220
     search_type : title
219 221
     timeout : 5.0
220 222
     disabled : True