%3CLINGO-SUB%20id%3D%22lingo-sub-509789%22%20slang%3D%22en-US%22%3EHOW%20TO%3A%20Implement%20a%20custom%20iFilter%20in%20SharePoint%202013%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-509789%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3E%20First%20published%20on%20TECHNET%20on%20May%2012%2C%202013%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThis%20post%20is%20a%20contribution%20from%20Kevin%20Jacob%20Kurian%2C%20an%20engineer%20with%20the%20SharePoint%20Developer%20Support%20team.%3C%2FP%3E%0A%3CP%3EIn%20SharePoint%202010%2C%20we%20had%20an%20option%20of%20implementing%20custom%20iFilter%20for%20files%20(like%20PDFs)%20so%20that%20we%20can%20see%20the%20search%20results%20from%20these%20files%20as%20well.%26nbsp%3B%20SharePoint%202013%20has%20this%20feature%20of%20crawling%20PDF%20files%20in-built.%26nbsp%3B%20So%2C%20the%20need%20for%20developing%20a%20custom%20iFilter%20is%20rare%20but%20still%20if%20you%20want%20to%20develop%20one%20(say%20for%20a%20DWG%20file)%20in%20SharePoint%202013%2C%20then%20the%20following%20steps%20will%20help.%3C%2FP%3E%0A%3CP%3E1.%20We%20need%20to%20perform%20an%20additional%20step%20apart%20from%20following%20the%20article%20that%20talks%20about%20%3CA%20href%3D%22http%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Fhh694268.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20registering%20a%20custom%20iFilter%20for%20SharePoint%202010%20%3C%2FA%3E%20.%3C%2FP%3E%0A%3CP%3E2.%20We%20need%20to%20run%20the%20%3CSTRONG%3E%20New-SPEnterpriseSearchFileFormat%20%3C%2FSTRONG%3E%20cmdlet%20after%20we%20complete%20all%20the%20steps%20outlined%20in%20the%20above%20article.%3C%2FP%3E%0A%3CP%3E3.%20The%20%3CA%20href%3D%22http%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Flibrary%2Fjj219556.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20%3CSTRONG%3E%20New-SPEnterpriseSearchFileFormat%20%3C%2FSTRONG%3E%20%3C%2FA%3E%20cmdlet%20adds%20the%20new%20file%20format%20and%20a%20corresponding%20file%20name%20extension%20to%20the%20search%20parsing%20system.%26nbsp%3B%20This%20binds%20the%20file%20format%20to%20a%20filter-based%20format%20handler%20in%20the%20search%20parsing%20system.%26nbsp%3B%20Thus%2C%20the%20search%20parsing%20system%20can%20only%20parse%20the%20new%20file%20format%20if%20the%20user%20has%20installed%20a%20corresponding%20filter-based%20handler%2C%20an%20iFilter%2C%20for%20the%20new%20file%20format.%3C%2FP%3E%0A%3CP%3EHere%E2%80%99s%20a%20sample%20to%20register%20an%20iFilter%20for%20DWG%20files.%3C%2FP%3E%0A%3CP%3E%24ssa%20%3D%20Get-SPEnterpriseSearchServiceApplication%20%E2%80%9CEnterprise%20Search%E2%80%9D%3C%2FP%3E%0A%3CP%3ENew-SPEnterpriseSearchFileFormat%20%E2%80%93SearchApplication%20%24ssa%20%E2%80%93FormatId%20dwg%20%E2%80%93FormatName%20DWGFiles%20%E2%80%93MimeType%20application%2Fdwg%3C%2FP%3E%0A%3CP%3EAfter%20registering%20the%20file%20format%2C%20restart%20the%20search%20service.%3C%2FP%3E%0A%3CP%3EHope%20this%20was%20helpful!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-509789%22%20slang%3D%22en-US%22%3E%3CP%3EFirst%20published%20on%20TECHNET%20on%20May%2012%2C%202013%20This%20post%20is%20a%20contribution%20from%20Kevin%20Jacob%20Kurian%2C%20an%20engineer%20with%20the%20SharePoint%20Developer%20Support%20team.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-509789%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

First published on TECHNET on May 12, 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!