Pomoc API MediaWiki

To jest automatycznie wygenerowana strona dokumentacji API MediaWiki.

Dokumentacja i przykłady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

list=search (sr)

(main | query | search)
  • Ten moduł wymaga praw odczytu.
  • Ten moduł może być użyty jako generator.
  • Źródło: MediaWiki
  • Licencja: GPL-2.0-or-later

Wykonaj wyszukiwanie pełnotekstowe.

Parametry:
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.

Ten parametr jest wymagany.
srnamespace

Szukaj tylko w tych przestrzeniach nazw.

Wartości (oddziel za pomocą | lub alternatywy): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 202, 274, 275, 828, 829, 2300, 2301, 2302, 2303, 10004, 10005, 10006, 10007, 10008, 10009
Aby wskazać wszystkie wartości, użyj *.
Domyślnie: 0
srlimit

Łączna liczba stron do zwrócenia.

Type: integer or max
Wartość musi znajdować się pomiędzy 1 a 500.
Domyślnie: 10
sroffset

Gdy będzie dostępnych więcej wyników, użyj tego do kontynuowania.

Typ: liczba całkowita
Domyślnie: 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
Suma ważona na podstawie linków przychodzących
wsum_inclinks_pv
Weighted sum based on incoming links and weekly pageviews
popular_inclinks_pv
Ranking oparty głównie na wyświetleniach stron
popular_inclinks
Ranking oparty głównie na liczbie linkujących
engine_autoselect
Let the search engine decide on the best profile to use.
Jedna z następujących wartości: classic, classic_noboostlinks, empty, engine_autoselect, popular_inclinks, popular_inclinks_pv, wsum_inclinks, wsum_inclinks_pv
Domyślnie: engine_autoselect
srwhat

Which type of search to perform.

Jedna z następujących wartości: nearmatch, text, title
srinfo

Które metadane zwrócić.

Wartości (oddziel za pomocą | lub alternatywy): rewrittenquery, suggestion, totalhits
Domyślnie: totalhits|suggestion|rewrittenquery
srprop

Which properties to return:

size
Dodaje rozmiar strony w bajtach.
wordcount
Dodaje liczbę słów na stronie.
timestamp
Adds the timestamp of when the page was last edited.
snippet
Adds a snippet of the page, with query term highlighting markup.
titlesnippet
Adds the page title, with query term highlighting markup.
redirecttitle
Dodaje tytuł pasującego przekierowania.
redirectsnippet
Adds the title of the matching redirect, with query term highlighting markup.
sectiontitle
Dodaje tytuł pasującej sekcji.
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
Przestarzałe. Ignored.
hasrelated
Przestarzałe. Zignorowano
extensiondata
Dodaje dodatkowe dane generowane przez rozszerzenia.
Wartości (oddziel za pomocą | lub alternatywy): categorysnippet, extensiondata, isfilematch, redirectsnippet, redirecttitle, sectionsnippet, sectiontitle, size, snippet, timestamp, titlesnippet, wordcount, hasrelated, score
Domyślnie: size|wordcount|timestamp|snippet
srinterwiki

Dołączaj wyniki wyszukiwań interwiki w wyszukiwarce, jeśli możliwe.

Typ: wartość boolowska (szczegóły)
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.

Typ: wartość boolowska (szczegóły)
srsort

Ustaw porządek sortowania zwracanych wyników.

Jedna z następujących wartości: create_timestamp_asc, create_timestamp_desc, incoming_links_asc, incoming_links_desc, just_match, last_edit_asc, last_edit_desc, none, random, relevance, user_random
Domyślnie: relevance