OpenSearch

June 26, 2007

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.

Tagged with: en, opensearch
This post has 3 comments. Feel free to read them and leave your own.
Got to add that to my website sometime...

And what's with all the icons on the browser toolbar?
clever. i don't know how you figured out the adsense for search URL, but it's genius.
Adam, it's kinda easy, just follow the steps on the adsense webpage. Then from the "action" attribute from the form tag in the resulting HTML, copy it's value and add &q={searchTerms}

Comment:

Author:
Email:
Website:
Comment:

About

I used to write in this blog, but I've found a better format to express myself. From now on, you may read my writings on ideas, programming and politics on my new wiki.

hCard

Name: Alcides Fonseca
Email:
MSN:
Gtalk:
Nov 24, 1988 40.197958, -8.408312

Tagcloud

Archives

Other links