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:
Other general parameters are available.
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
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
Wartość nie może być mniejsza niż 0.
Domyślnie: 0
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: relevance
Domyślnie: relevance