1 of 1 found this page helpful

GET:site/opensearch

    Overview

    public. Search the site index

    Uri Parameters

    None

    Query Parameters
    NameTypeDescription
    authenticatebool?Force authentication for request (default: false)
    constraintstring?Additional search constraint (ex: language:en-us AND type:wiki) default: none
    format{rss | atom}?search output format (rss | atom) default: atom
    limitstring?Maximum number of items to retrieve. Must be a positive number or 'all' to retrieve all items. (default: 100)
    nocachebool?Use caching search path (better for paging results) (default: false)
    offsetint?Number of items to skip. Must be a positive number or 0 to not skip any. (default: 0)
    parser{bestguess|term|filename|lucene}?The parser to use for the query (default: bestguess)
    qstringlucene search string
    sortby{score, title, date, size, wordcount, rating.score, rating.count}?Sort field. Prefix value with '-' to sort descending. default: -score
    Return Codes
    NameValueDescription
    BadRequest400Invalid input parameter or request body
    Ok200The request completed successfully

    Message Format

    Output (RSS):

    <rss version="2.0">
      <channel>
        <title>{text}</title> 
        <description>{text}</description> 
        <opensearch:totalResults>{int}</opensearch:totalResults> 
        <opensearch:itemsPerPage>{int}</opensearch:itemsPerPage> 
        <opensearch:Query role="request" searchTerms="{text}" startPage="{int}"  /> 
        <atom:link rel="{alternate|search|first|next|last|self}" type="{contenttype}" href="{uri}" /> 
        ...
        <item>
          <title>{text}</title> 
          <link>{uri}</link> 
          <description>{text}</description> 
          <relevance:score>{int}</relevance:score> 
          <dekilucene:size>{int}</dekilucene:size> 
          <dekilucene:wordcount>{int}</dekilucene:wordcount> 
          <dekilucene:path>{text}</dekilucene:path> 
          <dekilucene:page.parent id="{int}" path="{text}" title="{text}" href="{uri}" /> 
        </item>
        ...
      </channel>
    </rss>

      Output (Atom):

    <feed>
      <generator version="{text}">{text}</generator> 
      <updated>{date}</updated> 
      <title type="{text}">{text}</title> 
      <author>
        <name>{text}</name> 
      </author>
      <id>{uri}</id> 
      <opensearch:totalResults>{int}</opensearch:totalResults> 
      <opensearch:itemsPerPage>{int}</opensearch:itemsPerPage> 
      <opensearch:Query role="request" searchTerms="{text}" startPage="{int}"/> 
      <link rel="{alternate|search|first|next|last|self}" type="{contenttype}" href="{uri}" /> 
      ...
      <entry>
        <title type="text">{text}</title> 
        <published>{date}</published> 
        <updated>{date}</updated> 
        <link href="{uri}" /> 
        <id>{uri}</id> 
        <content type="text">{text}</content> 
        <relevance:score>{int}</relevance:score> 
        <dekilucene:size>{int}</dekilucene:size> 
        <dekilucene:wordcount>{int}</dekilucene:wordcount> 
        <dekilucene:path>{text}</dekilucene:path> 
        <dekilucene:page.parent id="{int}" path="{text}" title="{text}" href="{uri}" /> 
      </entry>
      ...
    </feed>

       

    Implementation Notes

    Refer here for more information on the Lucene search string format.

    Refer here for more information about OpenSearch.

    Code Samples

    C# Samples

     

    Curl Samples

     

    PHP Samples

     

    Other Code Samples

     

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by