I am trying to follow the this tutorial for setting up a thesaurus file when querying Full Text Search.
I have removed the comments in the following files
D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\tseng.xml
D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\tsglobal.xml
So now it contains the default synonyms (where for instance jog is replaced with run and vice versa).
Now, I loaded the thesaurus file using
EXEC sys.sp_fulltext_load_thesaurus_file 1033;
and I test my thesaurus using
SELECT * FROM sys.dm_fts_parser ('FORMSOF(THESAURUS,"running")', 1033, 0, 0)
I get only one row with the exact match
(NOTE:
SELECT * FROM sys.dm_fts_parser ('FORMSOF(Inflectional,"running")', 1033, 0, 0)
returns all "RUN" inflections)
I even try selecting over adventureWorks2012 (after updating a few rows with the word "jog" )
SELECT Description
FROM Production.ProductDescription
WHERE FREETEXT(Description, 'jog')
Nothing is returned. Any Ideas? Thanks.