1 Reply Latest reply on Jul 22, 2013 2:17 AM by nicolai_zaidman

    Parameter for OpenSearch Queries

      Hello,

       

      I would like to use OpenSearch for searching in Jive from outside.The OpenSearchDescriptor looks loke this (jive-url/opensearch.xml):

       

      <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">

      <ShortName>Jive Community</ShortName>

      <Description>Suche Jive Community</Description>

      <Contact>communities-no-reply@jivesoftware.com</Contact>

      <Url type="text/html" template="https://community.jivesoftware.com/search.jspa?peopleEnabled=true&q={searchTerms}&Submit=Search" />

      <Url type="application/atom+xml" template="https://community.jivesoftware.com/community/feeds/search/atom?peopleEnabled=true&q={searchTerms}&Submit=Search" />

      <Url type="application/rss+xml" template="https://community.jivesoftware.com/community/feeds/search/rss2?peopleEnabled=true&q={searchTerms}&Submit=Search" />

      <Image height="48" width="48" type="image/png">https://community.jivesoftware.com/favicon.png</Image>

      <Image height="16" width="16" type="image/vnd.microsoft.icon">https://community.jivesoftware.com/favicon.ico</Image>

      <Query role="example" searchTerms="cat" />

      </OpenSearchDescription>

       

      In the URL template the parameter searchTerms seems to be the only one required parameter.

       

      -->What optional parameter are possible in the search query? This URL worked for me: https://community.jivesoftware.com/community/feeds/search/atom?peopleEnabled=true&q={searchTerms}&Submit=Search&start=2

       

      -->It is possible for Jive OpenSearch to provide the count of total search results for the given query? Currently, the Jive OpenSearch provides the following informations:

       

      <link rel="alternate" href="https://community.jivesoftware.com" />

      <subtitle>List of items matching a given search query string</subtitle>

      <id>https://community.jivesoftware.com</id>

      <generator uri="http://jivesoftware.com/products/" version="6.0.2.0 ">Jive Engage</generator>

      <updated>2013-02-11T16:56:28Z</updated>

      <dc:date>2013-02-11T16:56:28Z</dc:date>

      <dc:language>en</dc:language>

      <opensearch:itemsPerPage>15</opensearch:itemsPerPage>

      <opensearch:totalResults>15</opensearch:totalResults>

      <opensearch:startIndex>4</opensearch:startIndex>

      <opensearch:Query role="request" searchTerms="jive" />

      <opensearch:link rel="search" type="application/opensearchdescription+xml" href="https://community.jivesoftware.com/opensearch.xml" />

       

      The parameter opensearch:totalResults provides the total results for the current page. There is no count for total results for provided search query.

       

      kind regards

       

      Nicolai