MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
list=search (sr)
- Questo modulo richiede i diritti di lettura.
- Questo modulo può essere utilizzato come generatore.
- Fonte: MediaWiki
- Licenza: GPL-2.0-or-later
Eseguire una ricerca di testo completa.
- 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.
- This parameter is required.
- srnamespace
Search only within these namespaces.
- Valori (separati da | o alternativa): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 470, 471, 710, 711, 828, 829, 1198, 1199
- Per specificare tutti i valori, utilizza *.
- Default: 0
- srlimit
Quante pagine totali restituire.
- Tipo: intero o max
- The value must be between 1 and 500.
- Default: 10
- sroffset
Quando più risultati sono disponibili, usa questo per continuare. Informazioni più dettagliate su come continuare le query possono essere trovate su mediawiki.org.
- Type: integer
- The value must be no less than 0.
- Default: 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
- Ranking based primarily on page views
- popular_inclinks
- La classifica si basa principalmente sul numero di collegamenti in entrata
- engine_autoselect
- Let the search engine decide on the best profile to use.
- Uno dei seguenti valori: classic, classic_noboostlinks, empty, engine_autoselect, popular_inclinks, popular_inclinks_pv, wsum_inclinks, wsum_inclinks_pv
- Default: engine_autoselect
- srwhat
Quale tipo di ricerca effettuare.
- Uno dei seguenti valori: nearmatch, text, title
- srinfo
Quali metadati restituire.
- Valori (separati da | o alternativa): rewrittenquery, suggestion, totalhits
- Default: 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 snippet of the page, with query term highlighting markup.
- titlesnippet
- Adds the page title, with query term highlighting markup.
- redirecttitle
- Aggiunge il titolo del redirect corrispondente.
- redirectsnippet
- Adds the title of the matching redirect, with query term highlighting markup.
- sectiontitle
- Aggiunge il titolo della sezione corrispondente.
- 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
- Deprecato. Ignorato.
- hasrelated
- Deprecato. Ignorato.
- extensiondata
- Adds extra data generated by extensions.
- Valori (separati da | o alternativa): categorysnippet, extensiondata, isfilematch, redirectsnippet, redirecttitle, sectionsnippet, sectiontitle, size, snippet, timestamp, titlesnippet, wordcount, hasrelated, score
- Default: size|wordcount|timestamp|snippet
- 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 another which is thought to provide better results, for instance by correcting spelling errors.
- Tipo: booleano (dettagli)
- srsort
Imposta l'ordinamento dei risultati restituiti.
- Uno dei seguenti valori: 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
- Default: relevance
- Search for meaning.
- api.php?action=query&list=search&srsearch=meaning [apri in una sandbox]
- Search texts for meaning.
- api.php?action=query&list=search&srwhat=text&srsearch=meaning [apri in una sandbox]
- Get page info about the pages returned for a search for meaning.
- api.php?action=query&generator=search&gsrsearch=meaning&prop=info [apri in una sandbox]