Trợ giúp về API MediaWiki
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
list=prefixsearch (ps)
- Mô đun này cần quyền đọc.
- This module can be used as a generator.
- Source: MediaWiki
- License: GPL-2.0-or-later
Perform a prefix search for page titles.
Despite the similarity in names, this module is not intended to be equivalent to Special:PrefixIndex; for that, see action=query&list=allpages with the apprefix parameter. The purpose of this module is similar to action=opensearch: to take user input and provide the best-matching titles. Depending on the search engine backend, this might include typo correction, redirect avoidance, or other heuristics.
- pssearch
Search string.
- This parameter is required.
- psnamespace
Namespaces to search. Ignored if pssearch begins with a valid namespace prefix.
- Các giá trị (phân tách bằng |): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 102, 103, 104, 105, 106, 107, 710, 711, 828, 829
- To specify all values, use *.
- Default: 0
- pslimit
Maximum number of results to return.
- Type: integer or max
- The value must be between 1 and 500.
- Default: 10
- psoffset
When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.
- Type: integer
- The value must be no less than 0.
- Default: 0
- psprofile
Search profile to use.
- strict
- Đề xuất sát, chỉ bỏ một số dấu chấm phẩy nhưng giữ nguyên dấu thanh mũ và dấu nhấn.
- normal
- Bỏ một vài dấu chấm phẩy, dấu thanh mũ và từ dừng.
- fuzzy
- Tương tự với dạng thông thường chỉ sửa chính tả (hỗ trợ sửa hai lỗi chính tả).
- fast-fuzzy
- Cách làm lai mờ (thử nghiệm, có thể bị dừng trong tương lai)
- classic
- Tiền tố phổ biến, bỏ một số dấu chấm phẩy và dấu thanh mũ.
- engine_autoselect
- Để bộ máy tìm kiếm quyết định dùng hồ sơ tốt nhất.
- Một trong các giá trị: classic, engine_autoselect, fast-fuzzy, fuzzy, normal, strict
- Default: engine_autoselect
- Search for page titles beginning with meaning.
- api.php?action=query&list=prefixsearch&pssearch=meaning [open in sandbox]