OpenSearch Dr. Harry Chen CMSC 491S/691S March 12, 2008
Agenda
What’s OpenSearch technology?
Overview OpenSearch specification
Describe an OpenSearch service
Advertise and compose a search request
Discover a new OpenSearch service
Inside OpenSearch application implementation
OpenSearch at a9.com
OpenSearch in Firefox
OpenSearch
OpenSearch is a set of standards for describing search services and publishing search results on the Web.
XML is used to describe services and search results.
Search results are published in a syndication format (RSS or Atom)
Typical OpenSearch Model OpenSearch Client OpenSearch Services
Communication OpenSearch Client (e.g., a9.com) OpenSearch Services (e.g., IMDB) Query string (plain text) Search results (HTML) HTTP GET request http://foo.com/os?q=stuff HTTP Response RSS/Atom (XML) You
OpenSearch != Meta-Search Engine
OpenSearch is a technology for building search services for the open Web.
It’s not a search engine or a meta-search engine
But, you can use this technology to build meta-search engines, vertical-market search engines, your-personal-search engines, my-social-network-search engines etc.
Key Features Autodiscovery Search Result Description Search URL Template Service Description OpenSearch
Service Description
An XML document that describes the properties of a search service. E.g.
Search Results are usually described in RSS or Atom
Special OpenSearch vocabularies are used to describe additional search information that can’t expressed in the core RSS or Atom vocabularies.
Result in RSS 2.0 Atom vocab. is used to “point to” the service description URL
Result in Atom
How to Announce the Service
Other than manually submit your service description to an OpenSearch directory, you can exploit autodiscovery .
A standard way for crawlers and clients to discover your services from HTML and RSS.
In HTML Pages http://www.opensearch.org/Specifications/OpenSearch/1.1
In RSS feeds http://www.opensearch.org/Specifications/OpenSearch/1.1
An Autodiscovery Example In Firefox, whenever you see a “blueish” icon means an OpenSearch service is discovered. http://en.wikipedia.org/wiki/Opensearch
How Wikipedia Implements OpenSearch http://en.wikipeida.org view source Service Description Doc http://en.wikipedia.org/w/opensearch_desc.php
Try-it-yourself
Enter the URL into the browser
Do you know how to compose a search request for Wikipedia?
What’s this? a different URL for getting search term suggestions!
0 comments
Post a comment