<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>John W Powell : Search</title><link>http://blogs.msdn.com/johnwpowell/archive/tags/Search/default.aspx</link><description>Tags: Search</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Search SharePoint from the Internet Explorer Toolbar Using a Custom Search Provider</title><link>http://blogs.msdn.com/johnwpowell/archive/2008/07/08/search-sharepoint-from-the-internet-explorer-toolbar-using-a-custom-search-provider.aspx</link><pubDate>Tue, 08 Jul 2008 21:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8709253</guid><dc:creator>johnwpowell</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/johnwpowell/comments/8709253.aspx</comments><wfw:commentRss>http://blogs.msdn.com/johnwpowell/commentrss.aspx?PostID=8709253</wfw:commentRss><description>&lt;P mce_keep="true"&gt;Here is an easy way to search a SharePoint site from the IE toolbar without having to develop a custom add-in.&amp;nbsp; Before showing you how to implement it, let's examine how custom search providers work.&lt;/P&gt;
&lt;H3&gt;How Custom Search Providers Work&lt;/H3&gt;
&lt;P mce_keep="true"&gt;When you browse to an Open Search enabled site in IE 7, the search provider drop down lights up&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_22.png" mce_href="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_22.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=53 alt="Provider Light Up" src="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_thumb_10.png" width=247 border=0 mce_src="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_thumb_10.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;You can use a search provider temporarily while on the site (the yellow star indicates it's temporary), or permanently add it to your list of search providers&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_24.png" target=_blank mce_href="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_24.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=151 alt="Temporary Search Provider" src="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_thumb_11.png" width=236 border=0 mce_src="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_thumb_11.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;To temporarily use a search provider, click the provider name and the search box will change&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_18.png" target=_blank mce_href="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_18.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=71 alt="Temporary Search Provider" src="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_thumb_8.png" width=236 border=0 mce_src="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_thumb_8.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;To permanently add a search provider, click &lt;EM&gt;Add Search Providers &lt;/EM&gt;and select the provider name&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_26.png" target=_blank mce_href="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_26.png"&gt;&lt;IMG height=151 alt="Add Search Provider" src="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_thumb_12.png" width=393 border=0 mce_src="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_thumb_12.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;A confirmation dialog appears&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_28.png" target=_blank mce_href="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_28.png"&gt;&lt;IMG height=148 alt=Confirmation src="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_thumb_13.png" width=240 border=0 mce_src="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_thumb_13.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;After that, your custom search provider will remain in the list (note there is no yellow star) no matter which site you are currently on&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_30.png" target=_blank mce_href="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_30.png"&gt;&lt;IMG height=133 alt="Search Provider" src="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_thumb_14.png" width=236 border=0 mce_src="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_thumb_14.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;When the users searches from the search box, they are taken to the SharePoint search results page&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_32.png" target=_blank mce_href="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_32.png"&gt;&lt;IMG height=256 alt="Search Results" src="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_thumb_15.png" width=640 border=0 mce_src="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_thumb_15.png"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;How to Implement A Custom Search Provider in SharePoint&lt;/H3&gt;
&lt;P mce_keep="true"&gt;To implement a custom search provider, create an XML file that describes it and place a link to the file on the site home page.&amp;nbsp; &lt;/P&gt;
&lt;P mce_keep="true"&gt;Let's create the search provider XML file.&amp;nbsp; The XML is self-explanatory, with the key element being the Url.&amp;nbsp; There is a special token: {searchTerms} that will be replaced with the text the user types in the search box.&amp;nbsp; Note that the Url is absolute and will be different if you are using the MOSS Search Center (searchcenter/Pages/Results.aspx?k={searchTerms})&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_20.png" target=_blank mce_href="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_20.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=155 alt="Search Provider XML" src="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_thumb_9.png" width=675 border=0 mce_src="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_thumb_9.png"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;Upload the XML file to the &lt;EM&gt;Shared Documents&lt;/EM&gt; library&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_36.png" target=_blank mce_href="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_36.png"&gt;&lt;IMG height=312 alt=image src="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_thumb_17.png" width=892 border=0 mce_src="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_thumb_17.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;Place a link tag in the home page of your site.&amp;nbsp; You can put it anywhere in the page, but put it in the &amp;lt;head&amp;gt; element if possible.&amp;nbsp; The simplest approach is to use a &lt;EM&gt;Content Editor&lt;/EM&gt; web part with the &lt;EM&gt;Chrome Type&lt;/EM&gt; set to &lt;EM&gt;None&lt;/EM&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_34.png" target=_blank mce_href="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_34.png"&gt;&lt;IMG height=67 alt=image src="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_thumb_16.png" width=477 border=0 mce_src="http://blogs.msdn.com/blogfiles/johnwpowell/WindowsLiveWriter/SearchSharePointfromtheInternetExplorerT_BCB1/image_thumb_16.png"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;That's all there is to it!&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Summary&lt;/H3&gt;
&lt;P mce_keep="true"&gt;As you can see, implementing a custom search provider for SharePoint is simpler than a single-colored Rubix Cube.&amp;nbsp; If you would like to learn more about Open Search, the full specifications are available here: &lt;A href="http://www.opensearch.org/Specifications/OpenSearch/1.1#OpenSearch_description_document" target=_blank mce_href="http://www.opensearch.org/Specifications/OpenSearch/1.1#OpenSearch_description_document"&gt;http://www.opensearch.org/Specifications/OpenSearch/1.1#OpenSearch_description_document&lt;/A&gt;.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8709253" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/johnwpowell/archive/tags/Search+Provider/default.aspx">Search Provider</category><category domain="http://blogs.msdn.com/johnwpowell/archive/tags/Search/default.aspx">Search</category><category domain="http://blogs.msdn.com/johnwpowell/archive/tags/Open+Search/default.aspx">Open Search</category><category domain="http://blogs.msdn.com/johnwpowell/archive/tags/SharePoint/default.aspx">SharePoint</category><category domain="http://blogs.msdn.com/johnwpowell/archive/tags/IE+Toolbar/default.aspx">IE Toolbar</category></item></channel></rss>