How To Return OpenSearch™ ResultsThe exact details on what needs to be done for your site depend on your particular technology. The OpenSearch Writers page lists software for producing OpenSearch for popular software packages, and also generic OpenSearch generating tools. There are three basic steps for publishing your search results as OpenSearch:
How To Indicate ErrorsThere is no hard rule about how errors should be communicated. However, the following pattern provides the end-user with some explanation as to what wrong, and will display properly in any reader: <?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">
<channel>
<title>[Title]</title>
<link>[Link]</link>
<description>[Description]</description>
<openSearch:totalResults>1</openSearch:totalResults>
<openSearch:startIndex>1</openSearch:startIndex>
<openSearch:itemsPerPage>1</openSearch:itemsPerPage>
<item>
<title>Error</title>
<description>[Error message]</description>
</item>
</channel>
</rss>
How To Read OpenSearch Results and make OpenSearch QueriesThere are a number of software libraries and other OpenSearch Readers available for reading OpenSearch. If you can’t find what you want there, you can build it yourself, as everything about OpenSearch is publicly documented. Take a look at the specification. OpenSearch Responses in RSS or Atom should be readable by any of the many publicly available parsers for those formats. How To Discover OpenSearch EnginesSearch engines that support OpenSearch should be exposing it via autodiscovery on their web pages. Additionally there is the full list of searches available on A9.com. A listing of those with the “open” syndication right are available in OpenSearch format. Further ReadingSee also the Developer FAQ, OpenSearch Tips, and of course, the OpenSearch specification. |