|
1 |
| ---- |
2 |
| -description: "View or Change Registered Filters and Word Breakers" |
3 |
| -title: "View or change registered filters & word breakers" |
4 |
| -ms.date: "03/14/2017" |
5 |
| -ms.prod: sql |
6 |
| -ms.prod_service: "search, sql-database" |
7 |
| -ms.technology: search |
8 |
| -ms.topic: conceptual |
9 |
| -helpviewer_keywords: |
10 |
| - - "full-text search [SQL Server], word breakers" |
11 |
| - - "full-text search [SQL Server], filters" |
12 |
| - - "filters [full-text search]" |
13 |
| - - "word breakers [full-text search]" |
14 |
| -ms.assetid: f88c54df-b1aa-4701-807f-dc92c32363fd |
15 |
| -author: pmasl |
16 |
| -ms.author: pelopes |
17 |
| -ms.reviewer: mikeray |
18 |
| -monikerRange: "=azuresqldb-current||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current" |
19 |
| -ms.custom: "seo-lt-2019" |
20 |
| ---- |
21 |
| -# View or Change Registered Filters and Word Breakers |
22 |
| -[!INCLUDE [SQL Server Azure SQL Database](../../includes/applies-to-version/sql-asdb.md)] |
23 |
| - After any word breakers or filters are installed or uninstalled on a system, the changes do not automatically take effect on server instances. This topic describes how to view the currently registered word breaker or filters and how to register newly installed word breakers and filters on an instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. |
24 |
| - |
25 |
| -### To view a list of languages whose word breakers are currently registered |
26 |
| - |
27 |
| -1. Use the [sys.fulltext_languages](../../relational-databases/system-catalog-views/sys-fulltext-languages-transact-sql.md) catalog view, as follows: |
28 |
| - |
29 |
| - ``` |
30 |
| - SELECT * FROM sys.fulltext_languages; |
31 |
| - ``` |
32 |
| - |
33 |
| -### To view a list of the filters that are currently registered |
34 |
| - |
35 |
| -1. Use the [sp_help_fulltext_system_components](../../relational-databases/system-stored-procedures/sp-help-fulltext-system-components-transact-sql.md) system stored procedure, as follows: |
36 |
| - |
37 |
| - ``` |
38 |
| - EXEC sp_help_fulltext_system_components 'filter'; |
39 |
| - ``` |
40 |
| - |
41 |
| -### To register newly installed word breakers and filters |
42 |
| - |
43 |
| -1. Use the [sp_fulltext_service](../../relational-databases/system-stored-procedures/sp-fulltext-service-transact-sql.md) system stored procedure to update the list of languages, as follows: |
44 |
| - |
45 |
| - ``` |
46 |
| - exec sp_fulltext_service 'update_languages'; |
47 |
| - ``` |
48 |
| - |
49 |
| -### To unregister uninstalled word breakers and filters |
50 |
| - |
51 |
| -1. Use the **sp_fulltext_service** to update the list of languages, as follows: |
52 |
| - |
53 |
| - ``` |
54 |
| - exec sp_fulltext_service 'update_languages' |
55 |
| - ``` |
56 |
| - |
57 |
| -2. Use the **sp_fulltext_service** to restart the filter daemon host processes (fdhost.exe), as follows: |
58 |
| - |
59 |
| - ``` |
60 |
| - exec sp_fulltext_service 'restart_all_fdhosts'; |
61 |
| - ``` |
62 |
| - |
63 |
| -### To replace existing word breakers or filters when installing new ones |
64 |
| - |
65 |
| -1. When preparing to install a DLL file that contains new word breakers or filters, verify that it has a different filename from any of the existing DLL files installed on your server instance. |
66 |
| - |
67 |
| -2. Copy the new DLL file into the directory containing the standard [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] DLL files for the server instance. The default location is: |
68 |
| - |
69 |
| - C:\Program Files\Microsoft SQL Server\MSSQL.*instance_name*\MSSQL\Binn |
70 |
| - |
71 |
| - > [!IMPORTANT] |
72 |
| - > We highly recommend that you load only signed and verified components. Also, we recommend that you run the FDHOST Launcher (MSSQLFDLauncher) Service with the least possible privileges. |
73 |
| - |
74 |
| -3. Install the new word breaker or filters. |
75 |
| - |
76 |
| - **To install and load Microsoft Filter Pack IFilters** |
77 |
| - |
78 |
| - - [How to register Microsoft Filter Pack IFilters with SQL Server]() |
79 |
| - |
80 |
| -4. Use **sp_fulltext_service** to load newly installed word breakers and filters in the server instance, as follows: |
81 |
| - |
82 |
| - ``` |
83 |
| - EXEC sp_fulltext_service @action='load_os_resources', @value=1; |
84 |
| - ``` |
85 |
| - |
86 |
| -5. Use **sp_fulltext_service** to update the list of languages, as follows: |
87 |
| - |
88 |
| - ``` |
89 |
| - EXEC sp_fulltext_service 'update_languages'; |
90 |
| - ``` |
91 |
| - |
92 |
| -6. Restart the filter daemon host processes (fdhost.exe), using **sp_fulltext_service** as follows: |
93 |
| - |
94 |
| - ``` |
95 |
| - EXEC sp_fulltext_service 'restart_all_fdhosts'; |
96 |
| - ``` |
97 |
| - |
98 |
| -## See Also |
99 |
| - [Set the Service Account for the Full-text Filter Daemon Launcher](../../relational-databases/search/set-the-service-account-for-the-full-text-filter-daemon-launcher.md) |
100 |
| - [Configure and Manage Filters for Search](../../relational-databases/search/configure-and-manage-filters-for-search.md) |
101 |
| - [Configure and Manage Word Breakers and Stemmers for Search](../../relational-databases/search/configure-and-manage-word-breakers-and-stemmers-for-search.md) |
102 |
| - |
| 1 | +--- |
| 2 | +description: "View or Change Registered Filters and Word Breakers" |
| 3 | +title: "View or change registered filters & word breakers" |
| 4 | +ms.date: "03/14/2017" |
| 5 | +ms.prod: sql |
| 6 | +ms.prod_service: "search, sql-database" |
| 7 | +ms.technology: search |
| 8 | +ms.topic: conceptual |
| 9 | +helpviewer_keywords: |
| 10 | + - "full-text search [SQL Server], word breakers" |
| 11 | + - "full-text search [SQL Server], filters" |
| 12 | + - "filters [full-text search]" |
| 13 | + - "word breakers [full-text search]" |
| 14 | +ms.assetid: f88c54df-b1aa-4701-807f-dc92c32363fd |
| 15 | +author: pmasl |
| 16 | +ms.author: pelopes |
| 17 | +ms.reviewer: mikeray |
| 18 | +monikerRange: "=azuresqldb-current||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current" |
| 19 | +ms.custom: "seo-lt-2019" |
| 20 | +--- |
| 21 | +# View or Change Registered Filters and Word Breakers |
| 22 | +[!INCLUDE [SQL Server Azure SQL Database](../../includes/applies-to-version/sql-asdb.md)] |
| 23 | + After any word breakers or filters are installed or uninstalled on a system, the changes do not automatically take effect on server instances. This topic describes how to view the currently registered word breaker or filters and how to register newly installed word breakers and filters on an instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. |
| 24 | + |
| 25 | +### To view a list of languages whose word breakers are currently registered |
| 26 | + |
| 27 | +1. Use the [sys.fulltext_languages](../../relational-databases/system-catalog-views/sys-fulltext-languages-transact-sql.md) catalog view, as follows: |
| 28 | + |
| 29 | + ``` |
| 30 | + SELECT * FROM sys.fulltext_languages; |
| 31 | + ``` |
| 32 | + |
| 33 | +### To view a list of the filters that are currently registered |
| 34 | + |
| 35 | +1. Use the [sp_help_fulltext_system_components](../../relational-databases/system-stored-procedures/sp-help-fulltext-system-components-transact-sql.md) system stored procedure, as follows: |
| 36 | + |
| 37 | + ``` |
| 38 | + EXEC sp_help_fulltext_system_components 'filter'; |
| 39 | + ``` |
| 40 | + |
| 41 | +### To register newly installed word breakers and filters |
| 42 | + |
| 43 | +1. Use the [sp_fulltext_service](../../relational-databases/system-stored-procedures/sp-fulltext-service-transact-sql.md) system stored procedure to update the list of languages, as follows: |
| 44 | + |
| 45 | + ``` |
| 46 | + EXEC sp_fulltext_service 'update_languages'; |
| 47 | + ``` |
| 48 | + |
| 49 | +### To unregister uninstalled word breakers and filters |
| 50 | + |
| 51 | +1. Use the **sp_fulltext_service** to update the list of languages, as follows: |
| 52 | + |
| 53 | + ``` |
| 54 | + EXEC sp_fulltext_service 'update_languages'; |
| 55 | + ``` |
| 56 | + |
| 57 | +2. Use the **sp_fulltext_service** to restart the filter daemon host processes (fdhost.exe), as follows: |
| 58 | + |
| 59 | + ``` |
| 60 | + EXEC sp_fulltext_service 'restart_all_fdhosts'; |
| 61 | + ``` |
| 62 | + |
| 63 | +### To replace existing word breakers or filters when installing new ones |
| 64 | + |
| 65 | +1. When preparing to install a DLL file that contains new word breakers or filters, verify that it has a different filename from any of the existing DLL files installed on your server instance. |
| 66 | + |
| 67 | +2. Copy the new DLL file into the directory containing the standard [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] DLL files for the server instance. The default location is: |
| 68 | + |
| 69 | + C:\Program Files\Microsoft SQL Server\MSSQL.*instance_name*\MSSQL\Binn |
| 70 | + |
| 71 | + > [!IMPORTANT] |
| 72 | + > We highly recommend that you load only signed and verified components. Also, we recommend that you run the FDHOST Launcher (MSSQLFDLauncher) Service with the least possible privileges. |
| 73 | + |
| 74 | +3. Install the new word breaker or filters. |
| 75 | + |
| 76 | + **To install and load Microsoft Filter Pack IFilters** |
| 77 | + |
| 78 | + - [How to register Microsoft Filter Pack IFilters with SQL Server]() |
| 79 | + |
| 80 | +4. Use **sp_fulltext_service** to load newly installed word breakers and filters in the server instance, as follows: |
| 81 | + |
| 82 | + ``` |
| 83 | + EXEC sp_fulltext_service @action='load_os_resources', @value=1; |
| 84 | + ``` |
| 85 | + |
| 86 | +5. Use **sp_fulltext_service** to update the list of languages, as follows: |
| 87 | + |
| 88 | + ``` |
| 89 | + EXEC sp_fulltext_service 'update_languages'; |
| 90 | + ``` |
| 91 | + |
| 92 | +6. Restart the filter daemon host processes (fdhost.exe), using **sp_fulltext_service** as follows: |
| 93 | + |
| 94 | + ``` |
| 95 | + EXEC sp_fulltext_service 'restart_all_fdhosts'; |
| 96 | + ``` |
| 97 | + |
| 98 | +## See Also |
| 99 | + [Set the Service Account for the Full-text Filter Daemon Launcher](../../relational-databases/search/set-the-service-account-for-the-full-text-filter-daemon-launcher.md) |
| 100 | + [Configure and Manage Filters for Search](../../relational-databases/search/configure-and-manage-filters-for-search.md) |
| 101 | + [Configure and Manage Word Breakers and Stemmers for Search](../../relational-databases/search/configure-and-manage-word-breakers-and-stemmers-for-search.md) |
| 102 | + |
0 commit comments