Search Results Feeds - Draft Specification 1.0 version 1

Jangle search results are mostly identical to standard Entity feeds with the notable addition of the OpenSearch extension.

Search feeds can be identified from the Jangle connector by the "type" property being set to "search".

In addition to the mapping of the JSON properties to the feed document, the following properties should be mapped to OpenSearch elements:

"totalResults"
This should be mapped to the value of the <opensearch:totalResults> element.
"offset"
Sets the <opensearch:startIndex> element's value.

The <opensearch:itemsPerPage> element can be set to the number of objects in the "data" array. Note: there is an assumption that Jangle feeds provide a consistent number of resources per page. As a result, provisions may need to be made for the last page in a result set in the event that the number of resources in the feed is less than the normal page default.

The search query terms (which should be a CQL query string) should be used to make the OpenSearch Query element:

<opensearch:Query role="request" searchTerms="{cql_query_string}" startIndex="0" />

Since feed offsets start with "0", search startIndex attributes should also be set to "0".

Search results feeds must include the OpenSearch namespace declaration: http://a9.com/-/spec/opensearch/1.1/