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)
  • Este módulo requiere permisos de lectura.
  • Este módulo puede utilizarse como un generador.
  • Fuente: MediaWiki
  • Licencia: GPL-2.0+

Perform a full text search.

Parámetros:
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.

Este parámetro es obligatorio.
srnamespace

Search only within these namespaces.

Valores (separados por |): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 2300, 2301, 2302, 2303
Predeterminado: 0
srwhat

Which type of search to perform.

Uno de los siguientes valores: title, text, nearmatch
srinfo

Qué metadatos devolver.

Valores (separados por |): totalhits, suggestion, rewrittenquery
Predeterminado: totalhits|suggestion|rewrittenquery
srprop

Qué propiedades se devolverán:

size
Adds the size of the page in bytes.
wordcount
Adds the word count of the page.
timestamp
Adds the timestamp of when the page was last edited.
snippet
Adds a parsed snippet of the page.
titlesnippet
Adds a parsed snippet of the page title.
redirecttitle
Añade el título de la redirección coincidente.
redirectsnippet
Adds a parsed snippet of the redirect title.
sectiontitle
Adds the title of the matching section.
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
Desaconsejado e ignorado.
hasrelated
Desaconsejado e ignorado.
Valores (separados por |): size, wordcount, timestamp, snippet, titlesnippet, redirecttitle, redirectsnippet, sectiontitle, sectionsnippet, isfilematch, categorysnippet, score, hasrelated
Predeterminado: size|wordcount|timestamp|snippet
sroffset

Cuando haya más resultados disponibles, utiliza esto para continuar.

Tipo: entero
Predeterminado: 0
srlimit

Cuántas páginas en total se devolverán.

No se permite más de 500 (5000 para los bots).
Tipo: entero o max
Predeterminado: 10
srinterwiki

Incluir resultados interwiki en la búsqueda, si es posible.

Tipo: booleano/lógico (detalles)
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/lógico (detalles)