In this article we will be seeing how to delete a file type from the content
index in SharePoint 2010.
Using Central Administration:
- Go to Central Administration =>
Application Management => Manage Service Applications => Search Service
Application.
- In the navigation, go to Crawling =>
File Types.
- Select the file type, click on ECB Menu
=> Delete.
Using Visual Studio 2010:
Using Powershell:
- Run SharePoint 2010 Management Shell as an
administrator.
- Add the following script to create a new
file type to the content index.
$ssaName="Search Service Application"
$context=[Microsoft.Office.Server.Search.Administration.SearchContext]::GetContext($ssaName)
$ssaContent=New-Object
Microsoft.Office.Server.Search.Administration.Content($context)
$ssaContent.ExtensionList.Create("ascx")