MediaWiki API ヘルプ
このページは自動生成された MediaWiki API の説明文書ページです。
説明文書と例: https://www.mediawiki.org/wiki/API
list=search (sr)
- このモジュールは読み取りの権限を必要とします。
- このモジュールはジェネレーターとして使用できます。
- Source: MediaWiki
- License: GPL-2.0-or-later
全文検索を行います。
- srsearch
この値を含むページ名または本文を検索します。Wikiの検索バックエンド実装に応じて、あなたは特別な検索機能を呼び出すための文字列を検索することができます。
- このパラメーターは必須です。
- srnamespace
この名前空間内のみを検索します。
- 値 (|もしくは別の文字列で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、2300、2301、2302、2303
- To specify all values, use *.
- 既定値: 0
- srlimit
返すページの総数です。
- No more than 500 (5,000 for bots) allowed.
- Type: integer or max
- 既定値: 10
- sroffset
When more results are available, use this to continue.
- Type: integer
- 既定値: 0
- srwhat
実行する検索の種類です。
- 値 (次の値のいずれか1つ): title、text、nearmatch
- srinfo
Which metadata to return.
- 値 (|もしくは別の文字列で区切る): totalhits、suggestion、rewrittenquery
- 既定値: totalhits|suggestion|rewrittenquery
- srprop
返すプロパティ:
;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:合致するタイトルを追加します。
;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:廃止予定です。 Ignored.
;hasrelated:廃止予定です。 Ignored.
;extensiondata:Adds extra data generated by extensions.
- 値 (|もしくは別の文字列で区切る): size、wordcount、timestamp、snippet、titlesnippet、redirecttitle、redirectsnippet、sectiontitle、sectionsnippet、isfilematch、categorysnippet、score、hasrelated、extensiondata
- 既定値: 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)
- meaning を検索する。
- api.php?action=query&list=search&srsearch=meaning [サンドボックスで開く]
- Search texts for meaning.
- api.php?action=query&list=search&srwhat=text&srsearch=meaning [サンドボックスで開く]
- meaning の検索で返されたページのページ情報を取得する。
- api.php?action=query&generator=search&gsrsearch=meaning&prop=info [サンドボックスで開く]