Register a PDF IFilter for SharePoint 2010 (Foundation and Other Versions)


To Install an configure PDF Ifilter on SharePoint Foundation Installation follow the below steps 

  1. Install PDF iFilter 9.0 (64 bit) from http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025
  2. Download PDF icon picture from Adobe web site http://www.adobe.com/misc/linking.html and copy to C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14TEMPLATEIMAGES 
  3. Add the following entry in docIcon.xml file, which can be found at: C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14TEMPLATEXML
    Add the new entry (value is the name of image for pdf in Images directory of sharepoint in step 2)

    <Mapping Key=”pdf” Value=”pdf.gif”/>

  4. Copy the below content to a VBS file and save it (I.E save file name as AddExtension.vbs)

    —————–

    Sub Usage

        WScript.Echo “Usage:    AddExtension.vbs extension”
        WScript.Echo

    end Sub

    Sub Main

        if WScript.Arguments.Count < 1 then
                    Usage
                    wscript.Quit(1)
       end if

        dim extension
        extension = wscript.arguments(0)

        Set gadmin = WScript.CreateObject(“SPSearch4.GatherMgr.1”, “”)

        For Each application in gadmin.GatherApplications
            For Each project in application.GatherProjects
                        project.Gather.Extensions.Add(extension)
                    Next
        Next

    End Sub

    call Main

    ———————–

  5. Copy the above script file to Sharepoint Foundation 2010 Server
  6. Run it from Command Prompt
    > WScript AddExtension.vbs pdf
  7. Register PDF ifilter as below:
    4-1.       Find regkey “HKEY_LOCAL_MACHINESOFTWAREMicrosoftShared ToolsWeb Server Extensions14.0SearchSetupContentIndexCommonFiltersExtension”
    4-2.       Right-Click – [New]-[Key]. Then specify key name “.pdf”
    4-3.       Right-Click (Default) of above “.pdf” key then click “Modify”
    4-5.       Specify value “{E8978DA6-047F-4E3D-9C78-CDBE46041603}”
    4-6.       Restart SPSearch4
  8. Run crawl as below
    >stsadm –o spsearch –action fullcrawlstart
  9. Confirm the pdf files can be found in search results
To Install an configure PDF Ifilter on SharePoint Standard OR Enterprise
     1.Install PDF iFilter 9.0 (64 bit) from http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025
  1. Download PDF icon picture from Adobe web site http://www.adobe.com/misc/linking.html and copy to C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14TEMPLATEIMAGES 
  2. Add the following entry in docIcon.xml file, which can be found at: C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14TEMPLATEXML

    Add the new entry (value is the name of image for pdf in Images directory of sharepoint in step 2)
    <Mapping Key=”pdf” Value=”pdf.gif”/>
  3. Add pdf file type on the File Type page under Search Service Application
  4. Open regedit
  5. Navigate to the following location:
    HKEY_LOCAL_MACHINESOFTWAREMicrosoftOffice Server14.0SearchSetupContentIndexCommonFiltersExtension
  6. Right-click > Click New > Key to create a new key for .pdf
  7. Add the following GUID in the default value 
    {E8978DA6-047F-4E3D-9C78-CDBE46041603}
  • Restart the SharePoint Server Search 14
  • Reboot the SharePoint servers in Farm
  • Create a Test site (with any out-of-box site template) and create a document library upload any sample PDF document(s).
  • Perform FULL Crawl to get search result.
  • Once the crawl is completed we will get search results.

Search for Office 2007 files on WSS

When a Microsoft Windows SharePoint Services 3.0 site collection is searched by the Windows SharePoint Services Search service, the following 2007 Microsoft Office document types are not indexed:

e.g.
Microsoft Office Excel 2007 (.xlsx, .xlsm)
Microsoft Office PowerPoint 2007 (.pptx, .pptm)
Microsoft Office Word 2007 (.docx, .docm)

Reason:
Ifilter for Office 2007 is not installed.

Solution:

1.Download and Install Office 2007 Microsoft Filter Pack
http://www.microsoft.com/downloads/details.aspx?familyid=60c92a37-719c-4077-b5c6-cac34f4227cc&displaylang=en&tm

2.Register the Ifilter on your SharePoint index server
http://support.microsoft.com/?id=946338

Now, SharePoint search will return Office 2007 documents in search results