Monday, August 24, 2009

Setting up Sharepoint Server Search to index pdf content and to show PDF Icon

  1. Decide the image to be shown for the pdf doc icon and copy it to 12\TEMPLATE\IMAGES (Normally icpdf.gif file)
  2. Open DOCICON.XML which is located in folder 12\TEMPLATE\XML
    1. Under the node <byextension> add the below statement.
      1. <mapping key="pdf" value="imageFileName.gif">
      2. imageFileName.gif is the name of the gif file copied above
      3. Save the XML file.
  3. Go to Sharepoint Central Admin -> Shared Services
    1. Click on file types
      1. Click on the new file type to add the pdf file type. Click ok to add it to the list. And verify that the file extension is populated.
  4. Stop the IIS
  5. Install the Adobe IFilter which can be downloaded from internet (ifilter60.exe).
  6. After successful installation of Abode IFilter restart IIS.
  7. Reset Crawled content (SharedServices -> Search Settings) this is required since it may not re-crawl the older sites even in Full Crawl.
  8. Now need to add the Name column to do this follow the steps
    1. Go to Search Settings -> Metadata property mappings
    2. Add a new Mapped Property for FileLeafRef. Click on the Add Mapping, in the seach text box enter keyword fileleafref and click on find to filter the Select Crawled property to ows_FileLeafRef(Text). Click on ows_FileLeafRef(Text) in the list box to select it and Click OK. Enter the propery name as “Name”
    3. Click Ok to Save it.
    4. Make sure that the newly added property is populated in the list
  9. After Resetting go to Content Sources and Crawl Schedules
  10. Apply a Full Crawl
  11. Wait for the crawl to complete.
  12. Once the crawl is completed the pdf document matching the search criteria will be shown in search results.

No comments: