MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

list=search (sr)

(main | query | search)
  • Questo modulo richiede i diritti di lettura.
  • Questo modulo può essere utilizzato come generatore.
  • Fonte: MediaWiki
  • Licenza: GPL-2.0+

Eseguire una ricerca di testo completa.

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

Questo parametro è obbligatorio.
srnamespace

Search only within these namespaces.

Valori (separati da |): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 100, 101, 102, 103, 104, 105, 106, 107, 110, 111
Predefinito: 0
srwhat

Quale tipo di ricerca effettuare.

Uno dei seguenti valori: title, text, nearmatch
srinfo

Quali metadati restituire.

Valori (separati da |): totalhits, suggestion, rewrittenquery
Predefinito: totalhits|suggestion|rewrittenquery
srprop

Quali proprietà restituire.

size
Aggiungi la dimensione della pagina in byte.
wordcount
Aggiungi il conteggio delle parole nella pagina.
timestamp
Aggiungi il timestamp di quando la pagina è stata modificata l'ultima volta.
snippet
Adds a parsed snippet of the page.
titlesnippet
Adds a parsed snippet of the page title.
redirecttitle
Aggiunge il titolo del redirect corrispondente.
redirectsnippet
Adds a parsed snippet of the redirect title.
sectiontitle
Aggiunge il titolo della sezione corrispondente.
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
Deprecated and ignored.
hasrelated
Deprecated and ignored.
Valori (separati da |): size, wordcount, timestamp, snippet, titlesnippet, redirecttitle, redirectsnippet, sectiontitle, sectionsnippet, isfilematch, categorysnippet, score, hasrelated
Predefinito: size|wordcount|timestamp|snippet
sroffset

Quando più risultati sono disponibili, usa questo per continuare.

Tipo: intero
Predefinito: 0
srlimit

Quante pagine totali restituire.

Non più di 500 (5 000 per bot) consentito.
Tipo: intero o max
Predefinito: 10
srinterwiki

Include interwiki results in the search, if available.

Tipo: booleano (dettagli)
srenablerewrites

Enable internal query rewriting. Some search backends can rewrite the query into one its thinks gives better results, such as correcting spelling errors.

Tipo: booleano (dettagli)