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.

For example, to create a synonym list named my_synonymlist based on /local0/excal/syn_file and contained in sbsp2, execute the following statement:
EXECUTE PROCEDURE etx_CreateSynWlst 
    ( 'my_synonymlist', '/local0/excal/syn_file', 'sbsp2');
The format of the file is one root word followed by one or more synonyms, separated by blank spaces. Each line of text must be followed by one blank line. The operating system file must not contain any proprietary formatting information and must consist only of characters made available to the index by the CHAR_SET index parameter when the index was created. The following example illustrates a synonym list of an operating system file:
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().