API:Search

 GET Request  to search for a title or text in a wiki

Note: This module was introduced in v1.11

GET Request
Note: Default search results are without UTF8 encoding. Replace  in the get request above to see the difference.

Sample code
Search.py

Demo app(s)

 * MediaWiki Action API Search Demo.png sample app that allows you to pick a category and suggest articles to write on that don't yet exist on English Wikipedia: https://github.com/srish/MediaWiki_Action_API_Code_Samples/tree/master/API_All_Search_Modules/API_Search

Parameter history
Introduced Deprecated  Removed  Default


 * srinfo v1.16
 * srprop v1.16
 * nearmatch Search for a near match in the title v1.17
 * score Adds the score if any from the search engine v1.17 v1.24
 * titlesnippet v1.17
 * redirecttitle v1.17
 * redirectsnippet v1.17
 * sectiontitle v1.17
 * sectionsnippet v1.17
 * hasrelated Indicated whether a related search is available v1.17 v1.24
 * srbackend Class name of search backend to use $wgSearchType v1.22
 * srinterwiki false v1.23
 * srredirects Include redirect pages in the search. From v1.23 onwards, redirects are always included false v1.23

Additional notes

 * Depending on which search backend is in use, how  is interpreted may vary. On Wikimedia wikis which use CirrusSearch, see Help:CirrusSearch for information about the search syntax.