| title | Server Configuration: transform noise words | |||||
|---|---|---|---|---|---|---|
| description | Learn about the transform noise words option. See how it can be useful in some SQL Server full-text queries that include noise words (stopwords). | |||||
| author | rwestMSFT | |||||
| ms.author | randolphwest | |||||
| ms.date | 08/26/2025 | |||||
| ms.service | sql | |||||
| ms.subservice | configuration | |||||
| ms.topic | how-to | |||||
| helpviewer_keywords |
|
[!INCLUDE SQL Server]
Use the transform noise words server configuration option to suppress an error message if noise words (also known as stopwords) cause a Boolean operation on a full-text query to return zero rows. This option is useful for full-text queries that use the CONTAINS predicate in which Boolean operations or NEAR operations include noise words. The possible values are described in the following table.
| Value | Description |
|---|---|
| 0 (default) | Noise words (or stopwords) aren't transformed. When a full-text query contains noise words, the query returns zero rows, and [!INCLUDE ssNoVersion] raises a warning. Note: The warning is a run-time warning. Therefore, if the full-text clause in the query isn't executed, the warning isn't raised. For a local query, only one warning is raised, even when there are multiple full-text query clauses. For a remote query, the linked server might not relay the error; therefore, the warning might not be raised. |
| 1 | Noise words (or stopwords) are transformed. They're ignored, and the rest of the query is evaluated. If noise words are specified in a proximity term, [!INCLUDE ssNoVersion] removes them. For example, the noise word is is removed from CONTAINS(<column_name>, 'NEAR (hello,is,goodbye)'), transforming the search query into CONTAINS(<column_name>, 'NEAR(hello,goodbye)'). Note: CONTAINS(<column_name>, 'NEAR(hello,is)') would be transformed into simply CONTAINS(<column_name>, hello) because there's only one valid search term. |
This section illustrates the behavior of queries containing a noise word, the, under the alternate settings of transform noise words. The sample full-text query strings are assumed to run against a table row containing the following data: [1, "The black cat"].
Note
All such scenarios can generate a noise word warning.
-
With transform noise words set to 0:
Query string Result catANDtheNo results (The behavior is the same for theANDcat.)catNEARtheNo results (The behavior is the same for theNEARcat.)theAND NOTblackNo results blackAND NOTtheNo results -
With transform noise words set to 1:
Query string Result catANDtheHit for row with ID 1 catNEARtheHit for row with ID 1 theAND NOTblackNo results blackAND NOTtheHit for row with ID 1
The following example sets transform noise words to 1.
EXECUTE sp_configure 'show advanced options', 1;
RECONFIGURE;
GO
EXECUTE sp_configure 'transform noise words', 1;
RECONFIGURE;
GO