SQL Thesarus changes not seen


Welcome to AppDev Edge forums featuring discussion of today’s hottest topics by members of the AppDev Edge community, including our experts.

For complete access to AppDev Edge, learn more about the site and how to become a member.

rated by 0 users
This post has 2 Replies | 2 Followers

Top 75 Contributor
Posts 2
Points 55
EONO1000_0001 Posted: 24 Aug 2010 11:16 AM | 173.21.106.139

In AppDev's courseware for SqlServer 2008 developers, I've modified the English thesaurus as per example. And although the following line completes, the fullsearch is unaware. What am I missing?

EXEC 

 

 

 

sys.sp_fulltext_load_thesaurus_file 1033;

SELECT

 

 

ScrapReason.Name FROM Production.ScrapReason WHERE CONTAINS (Name,'FORMSOF THESAURUS, wrong)');

- Rich McGlynn

-- tseng.xml

<XML ID="Microsoft Search Thesaurus">
 <thesaurus xmlns="x-schema:tsSchema.xml">
  <diacritics_sensitive>0</diacritics_sensitive>
  <expansion>
   <sub>incorrect</sub>
   <sub>wrong</sub>
  </expansion>
  <replacement>
   <pat>short</pat>
   <pat>small</pat>
  </replacement>
  <expansion>
   <sub>run</sub>
   <sub>jog</sub>
  </expansion>
 </thesaurus>
</XML>

Top 10 Contributor
Posts 238
Points 2,490
AppDev
briane replied on 25 Aug 2010 7:27 AM | 64.122.37.219

Thank you for your post. I have forwarded your question on to an instructor.

 

Thank you,

Brian

  • | Post Points: 5
Top 10 Contributor
Posts 36
Points 315
Expert
DonK replied on 25 Aug 2010 2:33 PM | 209.193.47.160

First, the easy stuff (I have to ask! :-):

Did you create the Full Text Index as described previously in the chapter?
Did the sp_fulltext_load_thesaurus_file procedure execute without error?
Did you remember to save the changes to the tseng.xml file to its original location?
And if you used Notepad to make the changes, did it add a .txt extension?

Assuming that all of that isn't the problem, what exactly happens when you run the SELECT statement? What results do you get?

Don

  • | Post Points: 5
Page 1 of 1 (3 items) | RSS
©2010 AppDev Products, LLC. All Rights Reserved.