MediaWiki API ヘルプ

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

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

list=search (sr)

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

全文検索を行います。

パラメーター:
srsearch

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

このパラメーターは必須です。
srnamespace

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

値 (|もしくは別の文字列で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
To specify all values, use *.
既定値: 0
srlimit

返すページの総数です。

500(botは5,000)より多くは受け付けません。
Type: integer or max
既定値: 10
sroffset

When more results are available, use this to continue.

Type: integer
既定値: 0
srqiprofile

Query independent profile to use (affects ranking algorithm).

classic
Ranking based on the number of incoming links, some templates, page language and recency (templates/language/recency may not be activated on this wiki).
classic_noboostlinks
Ranking based on some templates, page language and recency when activated on this wiki.
empty
Ranking based solely on query dependent features (for debug only).
wsum_inclinks
Weighted sum based on incoming links
wsum_inclinks_pv
Weighted sum based on incoming links and weekly pageviews
popular_inclinks_pv
ページ閲覧数による順位
popular_inclinks
リンク元の件数による順位
engine_autoselect
Let the search engine decide on the best profile to use.
値 (次の値のいずれか1つ): classicclassic_noboostlinksemptywsum_inclinkswsum_inclinks_pvpopular_inclinks_pvpopular_inclinksengine_autoselect
既定値: engine_autoselect
srwhat

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

値 (次の値のいずれか1つ): titletextnearmatch
srinfo

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

値 (|もしくは別の文字列で区切る): totalhitssuggestionrewrittenquery
既定値: 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.
値 (|もしくは別の文字列で区切る): sizewordcounttimestampsnippettitlesnippetredirecttitleredirectsnippetsectiontitlesectionsnippetisfilematchcategorysnippetscorehasrelatedextensiondata
既定値: 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

Set the sort order of returned results.

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