API:Search

Insert non-formatted text here Prefix: sr Required Rights: None POST Only? No #REDIRECT[[  Perform a full text search

Parameters

 * info – What metadata to return.
 * Type: one of totalhits, suggestion

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 score           - Adds the score (if any) from the search engine snippet         - Adds a parsed snippet of the page titlesnippet    - Adds a parsed snippet of the page title redirectsnippet - Adds a parsed snippet of the redirect redirecttitle   - Adds a parsed snippet of the redirect title sectionsnippet  - Adds a parsed snippet of the matching section sectiontitle    - Adds a parsed snippet of the matching section title hasrelated      - Indicates whether a related search is available.
 * limit – How many total pages to return . Type: limit
 * namespace – The namespace(s) to enumerate . Type: namespace
 * offset – Use this value to continue paging (return by query) . Type: integer
 * prop – What properties to return
 * Type: one of size, wordcount, timestamp, score, snippet, titlesnippet, redirecttitle</tt>, redirectsnippet</tt>, sectiontitle</tt>, sectionsnippet</tt>, hasrelated</tt>


 * redirects – Include redirect pages in the search . Type: bool
 * search (required) – Search for all page titles (or content) that has this value . Type: string
 * what – Search inside the text or titles.
 * Type: one of title</tt>, text</tt>, nearmatch</tt>

Errors Codes

 * invalidtitle – Bad title ``key''.
 * invalidtitle – Bad title ``title''.
 * nosearch – The search parameter must be set.
 * readapidenied – You need read permission to use this module.
 * search-text-disabled – text search is disabled.
 * search-title-disabled – title search is disabled.