[Mediawiki] full text search

list=search (sr) *
  Perform a full text search

This module requires read rights
Parameters:
  srsearch       - Search for all page titles (or content) that has this value
                   This parameter is required
  srnamespace    - The namespace(s) to enumerate
                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 100, 101, 108, 109
                   Maximum number of values 50 (500 for bots)
                   Default: 0
  srwhat         - Search inside the text or titles
                   One value: title, text, nearmatch
  srinfo         - What metadata to return
                   Values (separate with '|'): totalhits, suggestion
                   Default: totalhits|suggestion
  srprop         - What properties to return
                    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
                   Values (separate with '|'): size, wordcount, timestamp, score, snippet, titlesnippet, redirecttitle, redirectsnippet, sectiontitle, sectionsnippet, hasrelated
                   Default: size|wordcount|timestamp|snippet
  srredirects    - Include redirect pages in the search
  sroffset       - Use this value to continue paging (return by query)
                   Default: 0
  srlimit        - How many total pages to return
                   No more than 50 (500 for bots) allowed
                   Default: 10
Example:
http://ja.wikipedia.org/w/api.php?action=query&list=search&srprop=score&srsearch=%E3%83%89%E3%83%A9%E3%82%B4%E3%83%B3%E3%83%9C%E3%83%BC%E3%83%AB%E6%94%B9%20%E4%BA%BA%E9%80%A0%E4%BA%BA%E9%96%93%20%E3%82%BB%E3%83%AB%E7%B7%A8%2014%20
Reference:

沒有留言:

張貼留言