Abbreviations in full text search index I have a text column containing various words that have been shortened into abbreviations.  For example, instead of "insured", the column might contain "insd".  I understand I can use a thesaurus file to create a list of synonyms, effectively allowing a search for "insd" to return rows that contain both "insured" and "insd".  Perfect.  

However, some of the other abbreviations in the column contain "special" characters, like a slash or an ampersand, such as:


t/p - third party
o/s - other side
p/p - per person
i&o - inside and out


Is there some way I can make CONTAINS or FREETEXT understand queries containing these words?  For instance:

SELECT *
FROM dbo.MyTable
WHERE FREETEXT(MyColumn, 't/p');


I've created the thesaurus file, tsenu.xml in the correct location for the instance:


&lt;XML ID="Microsoft Search Thesaurus"&gt;
    &lt;thesaurus xmlns="x-schema:tsSchema.xml"&gt;
    &lt;diacritics_sensitive&gt;0&lt;/diacritics_sensitive&gt;
        &lt;expansion&gt;
            &lt;sub&gt;insured&lt;/sub&gt;
            &lt;sub&gt;insd&lt;/sub&gt;
        &lt;/expansion&gt;
        &lt;expansion&gt;
            &lt;sub&gt;t/p&lt;/sub&gt;
            &lt;sub&gt;third party&lt;/sub&gt;
        &lt;/expansion&gt;
        &lt;expansion&gt;
            &lt;sub&gt;o/s&lt;/sub&gt;
            &lt;sub&gt;other side&lt;/sub&gt;
        &lt;/expansion&gt;
        &lt;expansion&gt;
            &lt;sub&gt;p/p&lt;/sub&gt;
            &lt;sub&gt;per person&lt;/sub&gt;
        &lt;/expansion&gt;
    &lt;/thesaurus&gt;
&lt;/XML&gt;


And loaded it using EXEC sys.sp_fulltext_load_thesaurus_file 1033;, however the query returns unpredictable results.
When you want to add words involving special characters that you want treated as a single word, you will want to create a custom dictionary. 

Creating Custom Dictionaries for special terms to be indexed ‘as-is’ in SQL Server 2008 Full-Text Indexes

Be aware that custom dictionaries are limited in size, plus the larger the dictionary the slower fulltext can become.

Custom dictionaries are great when you have a limited set of words to add like AT&amp;T or M&amp;Ms which are words with special characters that might be used over and over that you wanted treated as a single word instead of the default word breaking behavior.

Custom dictionaries are not great for for words like part numbers (ex. JY-14562, PTW-14432, etc.) where every row in a table would result in a new entry in the custom dictionary. You could potentially have several hundred thousand or more unique part numbers. That would not be a good use for custom dictionary.  If you need this type of behavior, you are better off writing your own word breaker. Creating word breakers is not well documented nor easy to create, but it does allow you to decide how you want words broken when you encounter special characters.