<?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>Suman Chakrabarti - SharePoint and ASP.NET blog : Search</title><link>http://blogs.msdn.com/sumanc/archive/tags/Search/default.aspx</link><description>Tags: Search</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>OpenSearch provider for MOSS search</title><link>http://blogs.msdn.com/sumanc/archive/2008/01/29/opensearch-provider-for-moss-search.aspx</link><pubDate>Wed, 30 Jan 2008 03:13:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7315279</guid><dc:creator>Suman Chakrabarti</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/sumanc/comments/7315279.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sumanc/commentrss.aspx?PostID=7315279</wfw:commentRss><wfw:comment>http://blogs.msdn.com/sumanc/rsscomments.aspx?PostID=7315279</wfw:comment><description>&lt;p&gt;It's nice to have that handy-dandy search bar in the upper right corner of your Internet Explorer browser, but how do you get that to show up with custom searches for MOSS?&lt;/p&gt;  &lt;p&gt;Well, you'll need to build a custom opensearch provider for your MOSS site. For this instance, I will demonstrate a simple provider that you will add to your page layouts to direct searches to your main search.&lt;/p&gt;  &lt;p&gt;First, we must make the OpenSearch XML. If you want a quick cheat, you can go &lt;a title="IE Search Providers" href="http://www.microsoft.com/windows/ie/searchguide/en-en/default.mspx?dcsref=http://runonce.msn.com/runonce2.aspx" target="_blank"&gt;here&lt;/a&gt; to use the IE search providers add-in. So, you'll need to create a file for each search provider you want to add to your page (i.e. All Sites, People, Intranet, Extranet, etc.).&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;IntranetSearch.xml&lt;/strong&gt;&lt;/p&gt;  &lt;p class="code"&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; ?&amp;gt;      &lt;br /&gt;&amp;lt;OpenSearchDescription xmlns=&amp;quot;http://a9.com/-/spec/opensearch/1.1&amp;quot;&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160; &amp;lt;ShortName&amp;gt;This text appears in the IE dropdown&amp;lt;/ShortName&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160; &amp;lt;Description&amp;gt;This is the description&amp;lt;/Description&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160; &amp;lt;InputEncoding&amp;gt;UTF-8&amp;lt;/InputEncoding&amp;gt;       &lt;br /&gt;&amp;#160;&amp;#160; &amp;lt;Url type=&amp;quot;text/html&amp;quot;       &lt;br /&gt;template=&amp;quot;http://search/searchcenter/pages/results.aspx?k={searchTerms}&amp;quot; /&amp;gt;       &lt;br /&gt;&amp;lt;/OpenSearchDescription&amp;gt;&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;Next, you'll have to add this to a common location that you will reference with the search provider.&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Open SharePoint designer. &lt;/li&gt;    &lt;li&gt;Create a folder called &lt;strong&gt;IESearchProviders&lt;/strong&gt; (the name is unimportant). &lt;/li&gt;    &lt;li&gt;Copy all your OpenSearchProviders in the folder. &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Finally, you'll need to go to your page layout. If you're like everyone else who customizes SharePoint, then you have a custom master page as well as custom page layouts. In any page layout (*.aspx) or master page (*.master) add the following link tag to the &lt;strong&gt;PlaceHolderAdditionalPageHead&lt;/strong&gt; content placeholder:&lt;/p&gt;  &lt;p class="code"&gt;&lt;code&gt;&amp;lt;link title=&amp;quot;This appears in IE dropdown as a new search type&amp;quot;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; type=&amp;quot;application/opensearchdescription+xml&amp;quot;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; rel=&amp;quot;search&amp;quot;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; href=&amp;quot;/SearchCenter/IESearchProviders/IntranetSearch.xml&amp;quot;       &lt;br /&gt;/&amp;gt;&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;Another scenario is to build an HttpHandler for the OpenSearch provider. This would allow you to programmatically modify the search results. Maybe you want to put the &amp;lt;link&amp;gt; tag on your master page so it appears on all sites, but you want the user to be able to define a search at the simplest of levels (as low as a document library).&lt;/p&gt;  &lt;p&gt;&lt;em&gt;&lt;strong&gt;&lt;font color="#ff0000"&gt;Update:&lt;/font&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;I seemed to have forgotten to mention how to add a button to the page to provide the user an easier way of knowing that the search provider exists&lt;/p&gt;  &lt;p class="code"&gt;&lt;code&gt;window.external.AddSearchProvider(&lt;a href="http://search/SearchCenter/IESearchProviders/IntranetSearch.xml"&gt;http://search/SearchCenter/IESearchProviders/IntranetSearch.xml&lt;/a&gt;)&lt;/code&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7315279" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/sumanc/archive/tags/SharePoint/default.aspx">SharePoint</category><category domain="http://blogs.msdn.com/sumanc/archive/tags/Search/default.aspx">Search</category></item><item><title>MOSS Profile Search LDAP query to remove disabled and service accounts</title><link>http://blogs.msdn.com/sumanc/archive/2007/06/28/moss-profile-search-ldap-query-to-remove-disabled-and-service-accounts.aspx</link><pubDate>Thu, 28 Jun 2007 17:28:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3585271</guid><dc:creator>Suman Chakrabarti</dc:creator><slash:comments>17</slash:comments><comments>http://blogs.msdn.com/sumanc/comments/3585271.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sumanc/commentrss.aspx?PostID=3585271</wfw:commentRss><wfw:comment>http://blogs.msdn.com/sumanc/rsscomments.aspx?PostID=3585271</wfw:comment><description>&lt;P&gt;To put together the right query to get users that are not disabled accounts nor service accounts, you will need to add the following parameters to the query.&lt;/P&gt;
&lt;P style="FONT-WEIGHT: bold; COLOR: red; FONT-STYLE: italic"&gt;Update: I found a better approach to removing disabled accounts&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;(!userAccountControl:1.2.840.113556.1.4.803:=2) - removes disabled accounts&lt;/LI&gt;
&lt;LI&gt;(!userAccountControl=65536) - removes accounts with password set to never expire&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Your LDAP string should look something like this:&lt;/P&gt;
&lt;P&gt;(&amp;amp;(objectCategory=person)(objectClass=user)(!userAccountControl:1.2.840.113556.1.4.803:=2)(!userAccountControl=65536))&lt;/P&gt;
&lt;P&gt;For more ADSI userAccountControl flags go here: &lt;A href="http://msdn2.microsoft.com/en-us/library/aa772300.aspx"&gt;http://msdn2.microsoft.com/en-us/library/aa772300.aspx&lt;/A&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3585271" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/sumanc/archive/tags/SPS+2003_2F00_WSS+2/default.aspx">SPS 2003/WSS 2</category><category domain="http://blogs.msdn.com/sumanc/archive/tags/SharePoint/default.aspx">SharePoint</category><category domain="http://blogs.msdn.com/sumanc/archive/tags/ADSI/default.aspx">ADSI</category><category domain="http://blogs.msdn.com/sumanc/archive/tags/Search/default.aspx">Search</category></item><item><title>Notes on Lotus Notes Search in SharePoint</title><link>http://blogs.msdn.com/sumanc/archive/2007/03/31/notes-on-lotus-notes-search-in-sharepoint.aspx</link><pubDate>Sun, 01 Apr 2007 03:27:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2002203</guid><dc:creator>Suman Chakrabarti</dc:creator><slash:comments>6</slash:comments><comments>http://blogs.msdn.com/sumanc/comments/2002203.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sumanc/commentrss.aspx?PostID=2002203</wfw:commentRss><wfw:comment>http://blogs.msdn.com/sumanc/rsscomments.aspx?PostID=2002203</wfw:comment><description>&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=2&gt;Links to configuration of Notes search in SharePoint&lt;BR&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;A href="http://technet2.microsoft.com/Office/en-us/library/82c7c354-6347-4ae8-b5f8-7d0cdfe432401033.mspx?mfr=true"&gt;&lt;FONT size=2&gt;TechNet: Lotus Notes Configuration for SharePoint Search&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you're looking for migration from Lotus Notes I'm still investigating, but here is the location of the &lt;A class="" href="http://www.microsoft.com/technet/move" mce_href="http://www.microsoft.com/technet/move"&gt;Migration from Lotus Domino&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;There is a nice step-by-step for indexing Lotus Notes databases on SharePointBlogs.com (the one mistake in the demonstration is that they do not enable the security trimming, which is a must have):&lt;BR&gt;&lt;A href="http://www.sharepointblogs.com/helloitsliam/archive/2007/01/09/17654.aspx"&gt;http://www.sharepointblogs.com/helloitsliam/archive/2007/01/09/17654.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I also found a great article by Mei Ying on how to configure Lotus Notes search to display the proper title for an indexed item rather than a garbage name:&lt;BR&gt;&lt;A href="http://meiyinglim.blogspot.com/2007/01/displaying-correct-titles-of-lotus.html"&gt;http://meiyinglim.blogspot.com/2007/01/displaying-correct-titles-of-lotus.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=2&gt;What do I have to do to configure SharePoint Search?&lt;BR&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size=2&gt;It's important to note that SharePoint Search is already setup to handle Notes database searches. All that really needs done to setup SharePoint is install the Lotus Notes client on the server and configure an account to access databases. Then run a utility in the SharePoint program files directory called NotesSetup.exe and configure the mappings database to apply security trimming. &lt;/FONT&gt;&lt;FONT size=2&gt;It's importnant to note that SharePoint search&amp;nbsp;requires that the customer have a mapping database from Notes IDs to Windows domain account IDs for this security trimming to work.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;&lt;FONT size=2&gt;Some features of SharePoint search that are important to note:&lt;/FONT&gt;&lt;/I&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT size=2&gt;Indexing of notes databases (like mail, archive mail, journal, contacts, calendar etc.) which are cached locally. Database file could be lying anywhere on the disk. &lt;/FONT&gt;
&lt;LI&gt;&lt;FONT size=2&gt;Vast set of properties (Message Body, Subject, From, From Name, From Address, To Name, To Address, CC Name, CC Address, Doc Title Prefix, Sent Date, Received Date, Primary Date, Attachment Names and whether mail is having attachment) are supported to perform search on mails. &lt;/FONT&gt;
&lt;LI&gt;&lt;FONT size=2&gt;Property based search is also supported for Calendars &lt;/FONT&gt;
&lt;LI&gt;&lt;FONT size=2&gt;UI support to add/select/deselect file for indexing. Handles well the change in names of database files, deletion of database files and movement of database files.&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=2002203" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/sumanc/archive/tags/SharePoint/default.aspx">SharePoint</category><category domain="http://blogs.msdn.com/sumanc/archive/tags/Search/default.aspx">Search</category><category domain="http://blogs.msdn.com/sumanc/archive/tags/Lotus+Notes/default.aspx">Lotus Notes</category></item></channel></rss>