Edit

Configure and manage filters

Applies to: SQL Server Azure SQL Database Azure SQL Managed Instance

Indexing documents in a varbinary(max), image, or xml data type column requires extra processing. A filter performs this processing. The filter extracts the textual information from the document (removing the formatting). The filter then sends the text to the word-breaker component for the language associated with the table column.

Filters and document types

A given filter is specific to a given document type (.doc, .pdf, .xls, .xml, and so forth). These filters implement the IFilter interface. For more information about these document types, query the sys.fulltext_document_types catalog view.

Binary documents can be stored in a single varbinary(max) or image column. For each document, SQL Server chooses the correct filter based on the file extension. Because the file extension is not visible when the file is stored in a varbinary(max) or image column, the file extension (.doc, .xls, .pdf, and so forth) must be stored in a separate column in the table, called a type column. This type column can be of any character-based data type and contains the document file extension, such as .doc for a Microsoft Word document. In the Document table in Adventure Works, the Document column is of type varbinary(max), and the type column, FileExtension, is of type nvarchar(8).

To view the type column in an existing full-text index

Note

A filter might be able to handle objects embedded in the parent object, depending on its implementation. However, SQL Server does not configure filters to follow links to other objects.

View installed filters

To see which document types and filters are registered on the instance, use either of the following methods:

Default filters

The default filters that SQL Server installs depend on the full-text component version:

  • Version 1 (SQL Server 2022 (16.x) and earlier): the built-in filters cover plain text, HTML, and XML documents. To index Microsoft Office and other document formats, you can use any filters already installed on the operating system. You can also install additional filters, including the Microsoft Office 2010 Filter Packs or other non-Microsoft filters. For more information, see Customize version 1 filters and word breakers.

  • Version 2 (SQL Server 2025 (17.x) and later): the built-in filters cover Microsoft Office, OpenDocument, OneNote, and Outlook documents, in addition to HTML and XML. For more information, see Customize version 2 filters and word breakers.

For the complete list of filter binaries and the file extensions they handle in each version, see Full-text filter binaries.

Note

Even with the latest Office Filter Pack version that provides .xlsx support, SQL Server doesn't support Strict Open XML Spreadsheets. No error is returned; SQL Server simply fails to index the contents of any Strict Open XML Spreadsheets.