瀏覽代碼

[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
     '&format=json'\
31
     '&format=json'\
32
     '&sroffset={offset}'\
32
     '&sroffset={offset}'\
33
     '&srlimit={limit}'\
33
     '&srlimit={limit}'\
34
-    '&srwhat={searchtype}'  # search for a near match in the title
34
+    '&srwhat={searchtype}'
35
 
35
 
36
 
36
 
37
 # do search-request
37
 # do search-request

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

215
     categories : it
215
     categories : it
216
     base_url : https://directory.fsf.org/
216
     base_url : https://directory.fsf.org/
217
     number_of_results : 5
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
     search_type : title
220
     search_type : title
219
     timeout : 5.0
221
     timeout : 5.0
220
     disabled : True
222
     disabled : True