{"id":2453,"date":"2006-02-08T19:21:00","date_gmt":"2006-02-08T19:21:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/heaths\/2006\/02\/08\/blog-customizations-part-4-opensearch-discovery\/"},"modified":"2006-02-08T19:21:00","modified_gmt":"2006-02-08T19:21:00","slug":"blog-customizations-part-4-opensearch-discovery","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/setup\/blog-customizations-part-4-opensearch-discovery\/","title":{"rendered":"Blog Customizations, Part 4: OpenSearch Discovery"},"content":{"rendered":"<p>I&#8217;m a big fan of extensibility, which is why I was excited to see in a recent blog post on the <a href=\"\/ie\/\">IE Blog<\/a> about <a href=\"\/ie\/archive\/2006\/02\/07\/527266.aspx\">OpenSearch discovery<\/a> using &lt;link\/&gt; elements. <a href=\"http:\/\/opensearch.a9.com\/spec\/1.1\/\">OpenSearch<\/a> is a collection of XML schemas and extensions to RSS that enables clients like Internet Explorer to interact with search results in order to discover, query, and parse search results in a standard way.<\/p>\n<p>Web sites can add new search providers using <code>window.external.AddSearchProvider<\/code> in <a href=\"http:\/\/www.microsoft.com\/windows\/ie\/ie7\/default.mspx\">Internet Explorer 7 Beta 2 Preview<\/a>. I&#8217;m not naive enough to think anyone would want a permanent provider listing for my blog, but I have again <a href=\"\/heaths\/archive\/category\/12097.aspx\">customized this blog<\/a> to add&nbsp;two &lt;link\/&gt; elements that allow IE7 Beta 2 Preview to use the same search box to search both my and MSDN&#8217;s blog content. Below is the result of this new customization.<\/p>\n<p><img decoding=\"async\" src=\"\/photos\/heaths\/images\/528059\/original.aspx\" border=\"0\"><\/p>\n<p>Since I have limited ability to customize my blog I have had to take advantage of the fact that Internet Explorer currently accepts &lt;link\/&gt; tags in the body. The elements are simply the following:<\/p>\n<p><font color=\"#0000ff\">&lt;<\/font><font color=\"#800000\">link<\/font><font color=\"#0000ff\"> <\/font><font color=\"#ff0000\">rel<\/font><font color=\"#0000ff\">=<\/font>&#8220;<font color=\"#0000ff\">search<\/font>&#8220;<font color=\"#0000ff\"> <\/font><font color=\"#ff0000\">title<\/font><font color=\"#0000ff\">=<\/font>&#8220;<font color=\"#0000ff\">Heath Stewart&#8217;s Blog<\/font>&#8220;<font color=\"#0000ff\"> <\/font><font color=\"#ff0000\">href<\/font><font color=\"#0000ff\">=<\/font>&#8220;<font color=\"#0000ff\">http:\/\/hstewart.members.winisp.net\/search\/heaths.xml<\/font>&#8220;<font color=\"#0000ff\"> <\/font><font color=\"#ff0000\">type<\/font><font color=\"#0000ff\">=<\/font>&#8220;<font color=\"#0000ff\">application\/opensearchdescription+xml<\/font>&#8220;<font color=\"#0000ff\"> \/&gt;<br \/>&lt;<\/font><font color=\"#800000\">link<\/font><font color=\"#0000ff\"> <\/font><font color=\"#ff0000\">rel<\/font><font color=\"#0000ff\">=<\/font>&#8220;<font color=\"#0000ff\">search<\/font>&#8220;<font color=\"#0000ff\"> <\/font><font color=\"#ff0000\">title<\/font><font color=\"#0000ff\">=<\/font>&#8220;<font color=\"#0000ff\">MSDN Blogs<\/font>&#8220;<font color=\"#0000ff\"> <\/font><font color=\"#ff0000\">href<\/font><font color=\"#0000ff\">=<\/font>&#8220;<font color=\"#0000ff\">http:\/\/hstewart.members.winisp.net\/search\/msdn.xml<\/font>&#8220;<font color=\"#0000ff\"> <\/font><font color=\"#ff0000\">type<\/font><font color=\"#0000ff\">=<\/font>&#8220;<font color=\"#0000ff\">application\/opensearchdescription+xml<\/font>&#8220;<font color=\"#0000ff\"> \/&gt;<\/font><\/p>\n<p>OpenSearch Descriptions are quite simple. The content of the first URL above follows:<\/p>\n<p><font color=\"#0000ff\">&lt;?<\/font><font color=\"#800000\">xml<\/font><font color=\"#0000ff\"> <\/font><font color=\"#ff0000\">version<\/font><font color=\"#0000ff\">=<\/font>&#8220;<font color=\"#0000ff\">1.0<\/font>&#8220;<font color=\"#0000ff\">?&gt;<br \/>&lt;<\/font><font color=\"#800000\">OpenSearchDescription<\/font><font color=\"#0000ff\"> <\/font><font color=\"#ff0000\">xmlns<\/font><font color=\"#0000ff\">=<\/font>&#8220;<font color=\"#0000ff\">http:\/\/a9.com\/-\/spec\/opensearch\/1.1\/<\/font>&#8220;<font color=\"#0000ff\">&gt;<br \/>&nbsp;&nbsp;&nbsp; &lt;<\/font><font color=\"#800000\">ShortName<\/font><font color=\"#0000ff\">&gt;<\/font>Heath Stewart<font color=\"#0000ff\">&lt;\/<\/font><font color=\"#800000\">ShortName<\/font><font color=\"#0000ff\">&gt;<br \/>&nbsp;&nbsp;&nbsp; &lt;<\/font><font color=\"#800000\">Description<\/font><font color=\"#0000ff\">&gt;<\/font>Search Heath Stewart&#8217;s Blog<font color=\"#0000ff\">&lt;\/<\/font><font color=\"#800000\">Description<\/font><font color=\"#0000ff\">&gt;<br \/>&nbsp;&nbsp;&nbsp; &lt;<\/font><font color=\"#800000\">Url<\/font><font color=\"#0000ff\"> <\/font><font color=\"#ff0000\">type<\/font><font color=\"#0000ff\">=<\/font>&#8220;<font color=\"#0000ff\">text\/html<\/font>&#8220;<font color=\"#0000ff\"> <\/font><font color=\"#ff0000\">template<\/font><font color=\"#0000ff\">=<\/font>&#8220;<font color=\"#0000ff\">http:\/\/blogs.msdn.com\/heaths\/search.aspx?q={searchTerms}<\/font><font color=\"#ff0000\">&amp;amp;<\/font><font color=\"#0000ff\">p={startPage}<\/font>&#8220;<font color=\"#0000ff\"> \/&gt;<br \/>&nbsp;&nbsp;&nbsp; &lt;<font color=\"#800000\">LongName<\/font><font color=\"#0000ff\">&gt;<\/font><font color=\"#000000\">Heath Stewart&#8217;s Blog<\/font><font color=\"#0000ff\">&lt;\/<\/font><font color=\"#800000\">LongName<\/font><font color=\"#0000ff\">&gt;<\/font><br \/>&lt;\/<\/font><font color=\"#800000\">OpenSearchDescription<\/font><font color=\"#0000ff\">&gt; <\/font><\/p>\n<p>Consider adding OpenSearch to your site. See <a href=\"http:\/\/opensearch.a9.com\/\">http:\/\/opensearch.a9.com\/<\/a> for more information.<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m a big fan of extensibility, which is why I was excited to see in a recent blog post on the IE Blog about OpenSearch discovery using &lt;link\/&gt; elements. OpenSearch is a collection of XML schemas and extensions to RSS that enables clients like Internet Explorer to interact with search results in order to discover, [&hellip;]<\/p>\n","protected":false},"author":389,"featured_media":3843,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[11],"class_list":["post-2453","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-customizations"],"acf":[],"blog_post_summary":"<p>I&#8217;m a big fan of extensibility, which is why I was excited to see in a recent blog post on the IE Blog about OpenSearch discovery using &lt;link\/&gt; elements. OpenSearch is a collection of XML schemas and extensions to RSS that enables clients like Internet Explorer to interact with search results in order to discover, [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/posts\/2453","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/users\/389"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/comments?post=2453"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/posts\/2453\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/media\/3843"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/media?parent=2453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/categories?post=2453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/tags?post=2453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}