Export (0) Print
Expand All

Add or remove a file type from the search index in SharePoint Server 2013

SharePoint 2013
 

Applies to: SharePoint Server 2013

Topic Last Modified: 2013-12-18

Summary: Learn how to add or remove a file type from the search index and how to start or stop including content from the file type, in the search index.

Before you start, you may want to read Default crawled file name extensions and parsed file types in SharePoint Server 2013. This article lists the file types that SharePoint 2013 by default includes in the search index.

To add or remove a file type from the search index:

  1. Add or remove the file name extension from the list of file name extensions on the Manage File Types page. See Add or remove file name extensions from the Manage File Types page.

  2. Run a full crawl for all content sources that this change might affect.

When the full crawl finishes, the search index will include or exclude properties from files of the type that you have either added or removed.

To start including content from a file type, in the search index:

  1. On a server that hosts a content processing component in the Search service application, check whether the format of the file type is supported by a built-in format handler or a third-party filter-based format handler (iFilter). Built-in format handlers are the those that SharePoint 2013 has by default. See View information about file formats that can be parsed.

  2. If the server does not have a format handler for the file type, install a third-party filter-based format handler on all servers hosting content processing components in the Search service application. Follow the installation guidance given by the manufacturer of the third-party format handler.

  3. On all servers that host a content processing component in the Search service application, enable parsing of the format of the file and the file name extension. See Enable or disable parsing of a file format.

  4. Run a full crawl for all content sources that this change might affect.

When the full crawl finishes, the search index will include content from files of the type that you enabled.

To stop including content from a file type, in the search index:

  1. On a server that hosts a content processing component in the Search service application, check whether the format of the file type is supported by a built-in format handler or a third-party filter-based format handler (iFilter). Built-in format handlers are those that SharePoint 2013 has by default.

  2. On all servers that host a content processing component in the Search service application, disable parsing of the format of the file and the file name extension. See Enable or disable parsing of a file format.

  3. Run a full crawl for all content sources that this change might affect.

When the full crawl finishes, the search index will exclude content from files of the type that you disabled.

In this article:

NoteNote:
Because SharePoint 2013 runs as websites in Internet Information Services (IIS), administrators and users depend on the accessibility features that browsers provide. SharePoint 2013 supports the accessibility features of supported browsers. For more information, see the following resources:

Before you begin this operation, review the following information about prerequisites:

  • Create a Search service application


To add a file name extension to the Manage File Types page
  1. Verify that the user account that is performing this procedure is an administrator for the Search service application.

  2. In Central Administration, in the Application Management section, click Manage Service Applications.

  3. On the Manage Service Applications page, in the list of service applications, click the Search service application.

  4. On the Search Administration page, in the Crawling section, click File types. The Manage File Types page appears.

  5. Click New File Type.

  6. In the File extension box, type the extension of the file type that you want to add.

  7. Click OK.

  8. Verification: make sure that the extension appears in the list of file types on the Manage File Types page.


To remove a file name extension from the Manage File Types page
  1. Verify that the user account that is performing this procedure is an administrator for the Search service application.

  2. In Central Administration, in the Application Management section, click Manage Service Applications.

  3. On the Manage Service Applications page, in the list of service applications, click the Search service application.

  4. On the Search Administration page, in the Crawling section, click File types. The Manage File Types page appears.

  5. Point to the file type that you want to remove, click the arrow that appears and then click Delete.

  6. Click OK to confirm that you want to delete the file type.

  7. Verification: make sure that the extension no longer appears in the list of file types on the Manage File Types page.

To view information about the file formats that the content processing component has format handlers for, you have to use Windows PowerShell.

  1. Verify that the user account that is performing this procedure is an administrator for the Search service application.

  2. Start a SharePoint 2013 Management Shell on the server.

    • On the Start menu, click All Programs, click Microsoft SharePoint 2013 Products, right-click SharePoint 2013 Management Shell and then click Run as administrator.

    • For Windows Server 2012:

      1. On the Start screen, right-click SharePoint 2013 Management Shell and then click Run as administrator.

        If SharePoint 2013 Management Shell is not on the Start screen:

      2. Right-click Computer, click All apps, right-click SharePoint 2013 Management Shell and then click Run as administrator.

    For more information about how to interact with Windows Server 2012, see Common Management Tasks and Navigation in Windows Server 2012.

  3. At the Windows PowerShell command prompt, type the following commands:

    $ssa = Get-SPEnterpriseSearchServiceApplication
    Get-SPEnterpriseSearchFileFormat -SearchApplication $ssa
    
    

    The result is a list of all file formats that the content processing component in the Search service application referenced by $ssa can parse. For each file format the list shows:

    • The file name extension and mime type

    • The type of format handler that the content processing component uses to parse the format. The entry “BuiltIn:True” indicates a built-in format handler. The entry “BuiltIn:False” indicates a third-party filter-based format handler.

    • The parsing state of the format. The entry “Enabled:True” indicates that parsing is enabled. The entry “Enabled:False” indicates that parsing is disabled.

To enable or disable parsing of a file format, you have to use Windows PowerShell.


To enable parsing of a file format using a built-in format handler
  1. Verify that the user account that is performing this procedure is an administrator for the Search service application.

  2. Start a SharePoint 2013 Management Shell on the server that hosts the content processing component.

    • On the Start menu, click All Programs, click Microsoft SharePoint 2013 Products, right-click SharePoint 2013 Management Shell and then click Run as administrator.

    • For Windows Server 2012:

      1. On the Start screen, right-click SharePoint 2013 Management Shell and then click Run as administrator.

        If SharePoint 2013 Management Shell is not on the Start screen:

      2. Right-click Computer, click All apps, right-click SharePoint 2013 Management Shell and then click Run as administrator.

    For more information about how to interact with Windows Server 2012, see Common Management Tasks and Navigation in Windows Server 2012.

  3. At the Windows PowerShell command prompt, type the following commands:

    $ssa = Get-SPEnterpriseSearchServiceApplication
    Set-SPEnterpriseSearchFileFormatState -SearchApplication $ssa FormatID $TRUE
    

    Where:

    FormatID is the identity of the file format.

    $TRUE enables the format handler to parse the file type.

  4. Restart the SharePoint Search Host Controller service to apply the changes:

    1. Open a command prompt window on the server that hosts the content processing component. On the Start menu, click All Programs, click Accessories, right-click Command Prompt and then click Run as administrator.

    2. To stop the SharePoint Search Host Controller, type this command: net stop spsearchhostcontroller

    3. To restart the SharePoint Search Host Controller, type this command: net start spsearchhostcontroller

  5. Verification: show the list of file name extensions and file formats that the content processing component can parse and make sure that the file name extension is there. See View information about file formats that can be parsed.


To disable parsing of a file format using a built-in format handler
  1. Verify that the user account that is performing this procedure is an administrator for the Search service application.

  2. Start a SharePoint 2013 Management Shell on the server that hosts the content processing component.

    • On the Start menu, click All Programs, click Microsoft SharePoint 2013 Products, right-click SharePoint 2013 Management Shell and then click Run as administrator.

    • For Windows Server 2012:

      1. On the Start screen, right-click SharePoint 2013 Management Shell and then click Run as administrator.

        If SharePoint 2013 Management Shell is not on the Start screen:

      2. Right-click Computer, click All apps, right-click SharePoint 2013 Management Shell and then click Run as administrator.

    For more information about how to interact with Windows Server 2012, see Common Management Tasks and Navigation in Windows Server 2012.

  3. At the Windows PowerShell command prompt, type the following commands:

    $ssa = Get-SPEnterpriseSearchServiceApplication
    Set-SPEnterpriseSearchFileFormatState -SearchApplication $ssa FormatID $FALSE
    

    Where:

    FormatID is the identity of the file format.

    $FALSE disables the format handler from parsing the file type.

  4. Restart the SharePoint Search Host Controller service to apply the changes:

    1. Open a command prompt window on the server that hosts the content processing component. On the Start menu, click All Programs, click Accessories, right-click Command Prompt and then click Run as administrator.

    2. To stop the SharePoint Search Host Controller, type this command: net stop spsearchhostcontroller

    3. To restart the SharePoint Search Host Controller, type this command: net start spsearchhostcontroller

  5. Verification: show the list of file name extensions and file formats that the content processing component can parse and make sure that the file name extension is not there. See View information about file formats that can be parsed.


To enable parsing of a file format using a third-party filter-based format handler
  1. Verify that the user account that is performing this procedure is an administrator for the Search service application.

  2. Start a SharePoint 2013 Management Shell on the server that hosts the content processing component.

    • On the Start menu, click All Programs, click Microsoft SharePoint 2013 Products, right-click SharePoint 2013 Management Shell and then click Run as administrator.

    • For Windows Server 2012:

      1. On the Start screen, right-click SharePoint 2013 Management Shell and then click Run as administrator.

        If SharePoint 2013 Management Shell is not on the Start screen:

      2. Right-click Computer, click All apps, right-click SharePoint 2013 Management Shell and then click Run as administrator.

    For more information about how to interact with Windows Server 2012, see Common Management Tasks and Navigation in Windows Server 2012.

  3. At the Windows PowerShell command prompt, type the following commands:

    $ssa = Get-SPEnterpriseSearchServiceApplication
    New-SPEnterpriseSearchFileFormat -SearchApplication $ssa FileNameExtension FileFormat application/FileApplication
    

    Where:

    FileNameExtension is the file name extension of the file type.

    FileFormat is the format of the file type. The format is often the name of the application.

    application/FileApplication is the mime type of the file type. The mime type must consist of a type and a subtype. In this example, application is the type and FileApplication is the subtype. For example, for Word files, the type is application and the subtype is msword. Together they form the complete mime type: application/msword.

  4. Restart the SharePoint Search Host Controller service to apply the changes:

    1. Open a command prompt window on the server that hosts the content processing component. On the Start menu, click All Programs, click Accessories, right-click Command Prompt and then click Run as administrator.

    2. To stop the SharePoint Search Host Controller, type this command: net stop spsearchhostcontroller

    3. To restart the SharePoint Search Host Controller, type this command: net start spsearchhostcontroller

  5. Verification: show the list of file name extensions and file formats that the content processing component can parse and make sure that the file name extension is there. See View information about file formats that can be parsed.


To disable parsing of a file format using a third-party filter-based format handler
  1. Verify that the user account that is performing this procedure is an administrator for the Search service application.

  2. Start a SharePoint 2013 Management Shell on the server that hosts the content processing component.

    • On the Start menu, click All Programs, click Microsoft SharePoint 2013 Products, right-click SharePoint 2013 Management Shell and then click Run as administrator.

    • For Windows Server 2012:

      1. On the Start screen, right-click SharePoint 2013 Management Shell and then click Run as administrator.

        If SharePoint 2013 Management Shell is not on the Start screen:

      2. Right-click Computer, click All apps, right-click SharePoint 2013 Management Shell and then click Run as administrator.

    For more information about how to interact with Windows Server 2012, see Common Management Tasks and Navigation in Windows Server 2012.

  3. At the Windows PowerShell command prompt, type the following commands:

    $ssa = Get-SPEnterpriseSearchServiceApplication
    Remove-SPEnterpriseSearchFileFormat -SearchApplication $ssa -Identity FileNameExtension
    

    Where:

    FileNameExtension is the file name extension of the file type.

  4. Restart the SharePoint Search Host Controller service to apply the changes:

    1. Open a command prompt window on the server that hosts the content processing component. On the Start menu, click All Programs, click Accessories, right-click Command Prompt and then click Run as administrator.

    2. To stop the SharePoint Search Host Controller, type this command: net stop spsearchhostcontroller

    3. To restart the SharePoint Search Host Controller, type this command: net start spsearchhostcontroller

  5. Verification: show the list of file name extensions and file formats that the content processing component can parse and make sure that the file name extension is not there. See View information about file formats that can be parsed.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft