Friday, July 23, 2010

SPItemEventReceiver ItemAdded not firing

If you have configured ItemAdded event handler on a document library, and if you upload the same document multiple times, the first time ItemAdded event handler is fired. With the just uploaded document still in the library, subsequent uploading of the same document will not cause the ItemAdded event to fire.

I assume that SharePoint treats the subsequent uploading of the same document as an item being updated, not as being added, as in adding a new one.

Wednesday, July 14, 2010

FAST Query and FAST Content Search Service Applications in a SharePoint 2010 deployment Explained

After FAST for SharePoint 2010 (FAST4SP) is installed and configured, there are 2 search service applications associated with FAST4SP: FAST Query Search Service Application and FAST Content Search Service Application (Your search service application name could be different). It took me a while to realize the differences between those 2 service applications. The following blog entry helped me a lot learning those 2 service applications.

The two types of Search Service Applications (in a SharePoint 2010 deployment with FAST Search Server) - On The Search - Site Home - MSDN Blogs

In summary, FAST Query is used to service all search queries and crawl People content, i.e., User Profiles. So under the Search Administration page for FAST Query, there should be one and only one Content Source defined, with Start Addresses with only one entry, like sps3://hostname. Also search scopes should be defined under FAST Query service application. This blog entry demonstrates how to create a search scope in FAST Query from content source defined in FAST Content.

FAST Content is used to crawl all other content sources other than People. Out of the box under the Search Administration page of FAST Content, we should remove the entry of sps3:// from the content source's start addresses text box. Also note there is no search service application proxy for FAST Content.

Friday, July 2, 2010

Customizing My Sites in Microsoft SharePoint 2010 - Microsoft SharePoint Social Computing Team Blog - Site Home - MSDN Blogs

Customizing My Sites in Microsoft SharePoint 2010 - Microsoft SharePoint Social Computing Team Blog - Site Home - MSDN Blogs

It answers the following questions:

  • How do I change the top navigation on My Sites to include other links?
  • How do I brand My Sites?
  • How to add a customization to all existing personal sites?
  • How do I use personalization sites?
Must read before doing any customization with My Site.

    Add custom refiners to SharePoint 2010 Search Result

    In Expanding the Refiners

    By Todd Carter, he explains the basics of the refiner and how to add a new refiner based on file size to the search result page.

    Thursday, July 1, 2010

    Exporting SharePoint Document Library and Lists to Excel, including attachments

    Exporting SharePoint lists to Excel, including attachments

    One thing to note from the code provided by Bjørn Furuknap is that before creating the SPFolder object, we need to ensure the list item has attachment, if not, then creating SPFolder object causes exception. I used
    SPListItem.Attachments.Count 
    to check the exisence of attachment or not.


    Here is a codeplex project you can download for downloading SharePoint document library into a zip file.

    Chris O'Brien: Deploying master pages and page layouts as a feature

    Chris O'Brien: Deploying master pages and page layouts as a feature