Sì, è possibile. L'ho fatto per il mio blog.
<link rel="search" type="application/opensearchdescription+xml" title="The Sheng Blog" href="/resources/opensearch.php"/>
opensearch.php sembra piace questo:
<?xml version="1.0"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>The Sheng Blog (Beta)</ShortName>
<Description>The Sheng Blog Search</Description>
<Developer>Sheng Slogar</Developer>
<LongName>Search the entire Sheng Blog</LongName>
<InputEncoding>UTF-8</InputEncoding>
<OutputEncoding>UTF-8</OutputEncoding>
<Query role="example" searchTerms="code"/>
<SyndicationRight>open</SyndicationRight>
<AdultContent>false</AdultContent>
<Language>en-us</Language>
<Contact>[email protected]</Contact>
<Tags>code posts tutorials ideas playground</Tags>
<Image width="16" height="16" type="image/x-icon">data:/ico;base64,AAABA...(Icon in base64)</Image>
<Url type="text/html" template="http://theshengblogg.comule.com/search.php?s={searchTerms}"></Url>
<Url type="application/x-suggestions+json" method="GET" template="http://theshengblogg.comule.com/autocomplete.php?search={searchTerms}&json=true"/>
</OpenSearchDescription>
Ho imparato questo da http://www.opensearch.org/Specifications/OpenSearch/1.1. La parte autocomplete è facoltativa. Restituirlo in formato JSON.
Ad esempio, se si cerca "a", restituire ["a", "circa", "attraverso", "tutto", "e"]. (Notare che ho inserito la query nell'array come elemento 0.)
Il completamento automatico sembra funzionare solo in Firefox. Questo potrebbe essere qualcosa con il mio sottodominio. Inoltre, non sono riuscito a farlo funzionare in IE o Chrome.