Search Service:API: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 44: Line 44:
   * Supported search engine types.
   * Supported search engine types.
   */
   */
   const unsigned long TYPE_OPENSEARCH    = 1;
   const unsigned long TYPE_MOZSEARCH    = 1;
   const unsigned long TYPE_SHERLOCK      = 2;
   const unsigned long TYPE_SHERLOCK      = 2;
  const unsigned long TYPE_OPENSEARCH    = 3;


   /**
   /**
Line 114: Line 115:
   *        Must be a case insensitive value of either "get" or "post".
   *        Must be a case insensitive value of either "get" or "post".
   * @param template
   * @param template
   *        The URL to which search queries should be sent. This value will
   *        The URL to which search queries should be sent.
  *        undergo parameter substition according to the OpenSearch 1.1
  *        specification.
  *        XXX only some parameters are supported
  *        Example value: "http://browser.search.example.com/?query={searchTerms}
  *        See http://opensearch.a9.com/spec/1.1/querysyntax/#parameter-syntax.
   */
   */
   void addEngineWithDetails(in AString name,
   void addEngineWithDetails(in AString name,
Confirmed users, Bureaucrats and Sysops emeriti
722

edits