Pete Freitag Pete Freitag

OpenSearch by Amazon's A9 Search Engine

Updated on December 01, 2023
By Pete Freitag
web

Amazon's A9 Search engine has just added a very cool feature called OpenSearch. The idea is pretty simple, web sites can submit RSS feeds for their search results to the A9 OpenSearch web site (formerly opensearch.a9.com), then users can search lots of sites from one portal, or search aggregator.

"We want OpenSearch to do for search what RSS has done for content."
"Many sites today return search results as an tightly integrated part of the website itself. Unfortunately, those search results can't be easily reused or made available elsewhere, as they are usually wrapped in HTML and don't follow any one convention. OpenSearch offers an alternative: an open format that will enable those search results to be displayed anywhere, anytime. Rather than introduce yet another proprietary or closed protocol, OpenSearch is a straightforward and backward-compatible extension of RSS 2.0, the widely adopted XML-based format for content syndication." -a9

I have made two of my sites OpenSearch compatible: Dealazon, and MacRead, it was pretty simple because I already supported RSS search feeds, I just had to add a few lines to my RSS feed, and create a opensearch.xml file. The instructions on the Open Search web site are pretty clear on how to do this. Here's what an opensearch feed looks like:

<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearchdescription/1.0/">
  <Url>https://www.example.com/rss.cfm?q={searchTerms}&amp;maxResults={count}</Url>
  <Format>http://a9.com/-/spec/opensearchrss/1.0/</Format>
  <ShortName>Example</ShortName>
  <LongName>Example Site Search</LongName>
  <Description>Description of </Description>
  <Tags>example search</Tags>
  <Image>https://www.example.com/logo.gif</Image>
  <SampleSearch>example</SampleSearch>
  <Developer>Pete Freitag</Developer>
  <Contact>https://www.petefreitag.com/contact/</Contact>
  <Attribution>Copyright Pete Freitag 2005, All Rights Reserved</Attribution>
  <SyndicationRight>open</SyndicationRight>
  <AdultContent>false</AdultContent>
</OpenSearchDescription>


rss search amazon a9 opensearch

OpenSearch by Amazon's A9 Search Engine was first published on March 16, 2005.

If you like reading about rss, search, amazon, a9, or opensearch then you might also like:

Discuss / Follow me on Twitter ↯