Thesaurus

Post Reply
legedza.henry
Posts: 142
Joined: Wed Jul 24, 2002 11:52 pm

Thesaurus

Post by legedza.henry »

I wa sreading your latest newsletter re setting up a thesaurus and was wonderign whether you could detail the process on how to do this. We are running Webinator 5.1.46.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Thesaurus

Post by mark »

Start with the docs on creating an equiv file (thesaurus) at http://www.thunderstone.com/site/texism ... ation.html
and the tips in the newsletter http://www.thunderstone.com/texis/site/ ... #thesaurus

Once you have an equiv file decide if you want to use that one exclusively or in addition to the main equiv. You'll need to update the options table by hand for the profile(s) where you want to use the equiv. To use your equiv file exclusively do this:
(replacing the parts in ALL CAPS as appropriate)

texis -d INSTALLDIR/texis/testdb "insert into options(id,Profile,Type,Name,String) values(counter,'YOURPROFILENAME','String','SSc_eqprefix','/FULL/PATH/TO/YOUR/EQUIV')"

To use your equiv file as an addition to the main change 'SSc_eqprefix' to 'SSc_ueqprefix' in the above.

In your profile search settings set "Synonyms" as desired to use the equiv.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Thesaurus

Post by mark »

p.s.
Once you have an SSc_eqprefix or SSc_ueqprefix setting in a profile you can update it with

texis -d INSTALLDIR/texis/testdb "update options set String='/FULL/PATH/TO/YOUR/EQUIV' where Profile='YOURPROFILENAME' and Name='SSc_eqprefix'"

You can delete the setting with

texis -d INSTALLDIR/texis/testdb "delete from options where Profile='YOURPROFILENAME' and Name='SSc_eqprefix'"

Note that you don't need to update options when changing the equiv file, only when installing it the first time or if you move or rename the file.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Thesaurus

Post by mark »

p.p.s.
And check your current setting with

texis -d INSTALLDIR/texis/testdb "select Profile,Name,String from options where Profile='YOURPROFILENAME' and Name in ('SSc_eqprefix','SSc_ueqprefix')"

Remove the "Profile='YOURPROFILENAME' and" part to check all of your profiles.
Post Reply