미디어위키 API 도움말

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

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

list=search (sr)

(main | query | search)
  • 이 모듈은 read 권한을 요구합니다.
  • This module can be used as a generator.
  • 출처: MediaWiki
  • 라이선스: GPL-2.0+

Perform a full text search.

변수:
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
기본값: 0
srwhat

Which type of search to perform.

하나의 값: title, text, nearmatch
srinfo

Which metadata to return.

값 ("|"로 구분): totalhits, suggestion, rewrittenquery
기본값: totalhits|suggestion|rewrittenquery
srprop

Which properties to return:

size
Adds the size of the page in bytes.
wordcount
Adds the word count of the page.
timestamp
Adds the timestamp of when the page was last edited.
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
Deprecated and ignored.
hasrelated
Deprecated and ignored.
값 ("|"로 구분): size, wordcount, timestamp, snippet, titlesnippet, redirecttitle, redirectsnippet, sectiontitle, sectionsnippet, isfilematch, categorysnippet, score, hasrelated
기본값: size|wordcount|timestamp|snippet
sroffset

When more results are available, use this to continue.

유형: 정수
기본값: 0
srlimit

How many total pages to return.

No more than 50 (500 for bots) allowed.
Type: integer or max
기본값: 10
srinterwiki

Include interwiki results in the search, if available.

유형: 부울 (자세한 정보)
srenablerewrites

Enable internal query rewriting. Some search backends can rewrite the query into one its thinks gives better results, such as correcting spelling errors.

유형: 부울 (자세한 정보)