Create a synonym list
To create a custom synonym list, use the etx_CreateSynWlst() routine to specify the name of the synonym list, the location of the file that contains the list of synonyms, and the name of the sbspace that will contain the list.
EXECUTE PROCEDURE etx_CreateSynWlst
( 'my_synonymlist', '/local0/excal/syn_file', 'sbsp2');
clay earth mud loam
clean pure spotless immaculate unspoiled
To use a particular synonym list for a search, set MATCH_SYNONYM to the name of the list.
If you specify the MATCH_SYNONYM tuning parameter in the etx_contains() operator but do not set it equal to a value, etx_contains() refers to a default synonym list named etx_thesaurus.
To insert a new set of synonyms into an existing synonym list, you must use the etx_DropSynWlst() procedure to drop the list, add the set of synonyms to the operating system file, and recreate the synonym list by using the routine etx_CreateSynWlst().