MediaWiki API ヘルプ
このページは自動生成された MediaWiki API の説明文書ページです。
説明文書と例: https://www.mediawiki.org/wiki/API
list=search (sr)
- このモジュールは読み取りの権限を必要とします。
- このモジュールはジェネレーターとして使用できます。
Perform a full text search.
パラメーター:
- srsearch
Search for all page titles (or content) that have this value.
- このパラメーターは必須です。
- srnamespace
Search only within these namespaces.
- 値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、274、275
- 既定値: 0
- srwhat
Which type of search to perform.
- 値 (いずれか1つ): title、text、nearmatch
- srinfo
Which metadata to return.
- 値 (|で区切る): totalhits、suggestion
- 既定値: totalhits|suggestion
- 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.
- redirectsnippet
- Adds a parsed snippet of the redirect title.
- redirecttitle
- Adds the title of the matching redirect.
- sectionsnippet
- Adds a parsed snippet of the matching section title.
- sectiontitle
- Adds the title of the matching section.
- score
- Deprecated and ignored.
- hasrelated
- Deprecated and ignored.
- 値 (|で区切る): size、wordcount、timestamp、score、snippet、titlesnippet、redirecttitle、redirectsnippet、sectiontitle、sectionsnippet、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.
- 既定値: 10
- srinterwiki
Include interwiki results in the search, if available.
例:
- Search for meaning.
- api.php?action=query&list=search&srsearch=meaning
- Search texts for meaning.
- api.php?action=query&list=search&srwhat=text&srsearch=meaning
- Ger page info about the pages returned for a search for meaning.
- api.php?action=query&generator=search&gsrsearch=meaning&prop=info