OpenSearch Namespace Reference
The OpenSearch namespace provides elements for communicating search metadata and pagination information in RSS and Atom feeds. It enables search engines and APIs to publish search results in standard syndication formats.
| Namespace URI | http://a9.com/-/spec/opensearch/1.1/ |
|---|---|
| Specification | OpenSearch 1.1 Specification |
| Prefix | <opensearch:*> |
| Available in | RSS, Atom |
| Property | opensearch |
Types
INFO
For details on type parameters (TStrict) and Requirable<T> markers, see TypeScript Reference.
ts
export namespace OpenSearchNs {
export type Query<TStrict extends boolean = false> = Strict<
{
role: Requirable<string> // Required in spec.
searchTerms?: string
count?: number
startIndex?: number
startPage?: number
language?: string
inputEncoding?: string
outputEncoding?: string
},
TStrict
>
export type Feed<TStrict extends boolean = false> = {
totalResults?: number
startIndex?: number
itemsPerPage?: number
queries?: Array<Query<TStrict>>
}
}Related
- Parsing Namespaces - How namespace parsing works