MediaWiki API ヘルプ

このページは自動生成された MediaWiki API の説明文書ページです。

説明文書と例: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

list=search (sr)

(main | query | search)
  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

全文検索を行います。

パラメーター:
その他一般パラメーターが利用可能です。
srsearch

この値を含むページ名または本文を検索します。ウィキの検索バックエンド実装に応じて、特別な検索機能を呼び出すための文字列を検索できます。

この変数は必須です。
srnamespace

この名前空間内のみを検索します。

値 (| または別の文字列で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
すべての値を指定するには、*を用いてください。
既定: 0
srlimit

返すページの総数です。

型: 整数または max
値は1以上500以下です。
既定: 10
sroffset

When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.

型: 整数
既定: 0
srwhat

実行する検索の種類です。

値 (次の値のいずれか1つ): nearmatch、text、title
srinfo

どのメタデータを返すか。

値 (| または別の文字列で区切る): rewrittenquery、suggestion、totalhits
既定: totalhits|suggestion|rewrittenquery
srprop

返すプロパティ:

size
バイト単位のページのサイズを追加します。
wordcount
ページのワード数を追加します。
timestamp
ページが最後に編集されたときのタイムスタンプを追加します。
snippet
Adds a snippet of the page, with query term highlighting markup.
titlesnippet
Adds the page title, with query term highlighting markup.
redirecttitle
Adds the title of the matching redirect.
redirectsnippet
Adds the title of the matching redirect, with query term highlighting markup.
sectiontitle
合致するタイトルを追加します。
sectionsnippet
Adds the title of the matching section, with query term highlighting markup.
isfilematch
Adds a boolean indicating if the search matched file content.
categorysnippet
Adds the matching category name, with query term highlighting markup.
score
廃止予定です。 Ignored.
hasrelated
廃止予定です。 Ignored.
extensiondata
Adds extra data generated by extensions.
値 (| または別の文字列で区切る): 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.

型: 真偽値 (詳細)
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.

型: 真偽値 (詳細)
srsort

Set the sort order of returned results.

値 (次の値のいずれか1つ): relevance
既定: relevance