Freigeben über


HOW TO: Implement a custom iFilter in SharePoint 2013

This post is a contribution from Kevin Jacob Kurian, an engineer with the SharePoint Developer Support team.

In SharePoint 2010, we had an option of implementing custom iFilter for files (like PDFs) so that we can see the search results from these files as well.  SharePoint 2013 has this feature of crawling PDF files in-built.  So, the need for developing a custom iFilter is rare but still if you want to develop one (say for a DWG file) in SharePoint 2013, then the following steps will help.

1. We need to perform an additional step apart from following the article that talks about registering a custom iFilter for SharePoint 2010.

2. We need to run the New-SPEnterpriseSearchFileFormat cmdlet after we complete all the steps outlined in the above article.

3. The New-SPEnterpriseSearchFileFormat cmdlet adds the new file format and a corresponding file name extension to the search parsing system.  This binds the file format to a filter-based format handler in the search parsing system.  Thus, the search parsing system can only parse the new file format if the user has installed a corresponding filter-based handler, an iFilter, for the new file format.

Here’s a sample to register an iFilter for DWG files.

$ssa = Get-SPEnterpriseSearchServiceApplication “Enterprise Search”

New-SPEnterpriseSearchFileFormat –SearchApplication $ssa –FormatId dwg –FormatName DWGFiles –MimeType application/dwg

After registering the file format, restart the search service.

Hope this was helpful!

Comments

  • Anonymous
    January 01, 2003
    @Stephan, @Kewang:- Please refer to this TechNet article, technet.microsoft.com/.../jj219577.aspx It clearly says that we cannot override built-in iFilters... Here is the excerpt from the link:- "You can extend the initial collection of file formats that SharePoint 2013 can parse by adding third-party filter-based format handlers, known as iFilters. You cannot override a built-in format handler by installing a third-party iFilter."

  • Anonymous
    January 01, 2003
    Kevin, Great post.  Thanks for sharing with us.

  • Anonymous
    January 01, 2003
    Great post. Thanks for sharing

  • Anonymous
    May 13, 2013
    Is it possible to override a built-in Filter in SharePoint 2013?

  • Anonymous
    May 21, 2013
    Yes, we also need to override the built-in filter to get XMP meta data from image files.

  • Anonymous
    August 06, 2013
    Is it possible to override a built-in PDF Filter in SharePoint 2013?

  • Anonymous
    January 21, 2014
    IFilter development of MS according to the guidelines developed by June However, the development of the external iFilter SharePoint 2013 How do I register?

  • Anonymous
    January 21, 2014
    IFilter development of MS according to the guidelines developed by However, the development of the external iFilter SharePoint 2013 How do I register?

  • Anonymous
    July 31, 2014
    It appears as though this has now been fixed in the July CU has anyone been able to get to work with PDF to index (OCR) PDFs without text layers?

    http://techmikael.blogspot.com/2014/07/july-2014-cu-for-sharepoint-2013.html#comment-form

  • Anonymous
    June 22, 2015
      Symptom Consider the following scenario: You start a Search Service Application crawl in the SharePoint

  • Anonymous
    June 05, 2017
    That page now uses the following text - "You can extend the initial collection of file formats that SharePoint 2013 can parse by adding third-party filter-based format handlers, known as iFilters. A third party iFilter can override a built-in format handler."although overriding build-in ifilter's doesn't seem to work in sharepoint 2016?

  • Anonymous
    April 09, 2018
    Greate article :))