미디어위키 API 도움말

이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.

설명 문서 및 예시: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

list=search (sr)

(main | query | search)
  • 이 모듈은 read 권한을 요구합니다.
  • 이 모듈은 생성기로 사용할 수 있습니다.
  • 출처: MediaWiki
  • 라이선스: GPL-2.0-or-later

전문 검색을 수행합니다.

변수:
srsearch

Search for page titles or content matching this value. You can use the search string to invoke special search features, depending on what the wiki's search backend implements.

이 변수는 필수입니다.
srnamespace

Search only within these namespaces.

값 (|로 구분): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 828, 829, 2300, 2301, 2302, 2303 또는 다른 문자열: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 828, 829, 2300, 2301, 2302, 2303
모든 값을 지정하려면, *를 사용하십시오.
기본값: 0
srlimit

How many total pages to return.

유형: 정수 또는 max
The value must be between 1 and 500.
기본값: 10
sroffset

더 많은 결과를 이용할 수 있을 때, 계속하려면 이것을 사용하십시오.

Type: integer
기본값: 0
srwhat

Which type of search to perform.

다음 값 중 하나: nearmatch, text, title 또는 다른 문자열: nearmatch, text, title
srinfo

Which metadata to return.

값 (|로 구분): rewrittenquery, suggestion, totalhits 또는 다른 문자열: rewrittenquery, suggestion, totalhits
기본값: totalhits|suggestion|rewrittenquery
srprop

Which properties to return:

size
바이트 단위로 문서의 크기를 추가합니다.
wordcount
문서의 낱말 수를 추가합니다.
timestamp
문서가 마지막으로 편집된 시기의 타임스탬프를 추가합니다.
snippet
Adds a parsed snippet of the page.
titlesnippet
Adds a parsed snippet of the page title.
redirecttitle
Adds the title of the matching redirect.
redirectsnippet
Adds a parsed snippet of the redirect title.
sectiontitle
Adds the title of the matching section.
sectionsnippet
Adds a parsed snippet of the matching section title.
isfilematch
Adds a boolean indicating if the search matched file content.
categorysnippet
Adds a parsed snippet of the matching category.
score
구식입니다. 무시됨.
hasrelated
구식입니다. 무시됨.
extensiondata
Adds extra data generated by extensions.
값 (|로 구분): categorysnippet, extensiondata, isfilematch, redirectsnippet, redirecttitle, sectionsnippet, sectiontitle, size, snippet, timestamp, titlesnippet, wordcount, hasrelated, score 또는 다른 문자열: categorysnippet, extensiondata, isfilematch, redirectsnippet, redirecttitle, sectionsnippet, sectiontitle, size, snippet, timestamp, titlesnippet, wordcount, hasrelated, score
기본값: size|wordcount|timestamp|snippet
srinterwiki

Include interwiki results in the search, if available.

Type: boolean (details)
srenablerewrites

Enable internal query rewriting. Some search backends can rewrite the query into another which is thought to provide better results, for instance by correcting spelling errors.

Type: boolean (details)
srsort

반환된 결과의 정렬 순서를 설정합니다.

다음 값 중 하나: relevance 또는 다른 문자열: relevance
기본값: relevance