More about Alcides Fonseca
Go Back

OpenSearch

Written by Alcides Fonseca at 2007/06/26

I’ve been trying Sulfur, the next release of Flock Browser. The interface is a lot different from the stable version (that I mainly use) but one of those changes I liked was the detection of search engines.



Sulfur Search Engine Detection

This will make adding a search engine as easy as subscribing a RSS feed, what is great. Currently Firefox2 and IE7 (among others) already have this support, but isn’t as clear as Sulfur’s. It is based on the OpenSearch specifications, a standard for search engine. For the moment, its design consists in three parts: The XML spec of the search engine, the OpenSearch RSS feed for results and OpenSearch Aggregators to display those results.



For the moment, only the first part is widely spread, and so I decided to add it also to my website. First I created the XML file containing the icon location and the uri string for the search. In my case, as I am lazy, I used google custom search with adsense, so I could earn some bucks (as if someone will ever use it!)



Then, in the <head> tag, I just added:




<link rel="search" type="application/opensearchdescription+xml" href="/opensearch_desc.xml" title="Search Alcides Fonseca" />


As easy as this, so go ahead and add the OpenSearch description for you website search.