Synonym lists
A synonym list consists of a root word and one or more words whose meaning is similar to the root word. Synonym lists are useful when you do not know the exact content of the text you are searching.
For example, suppose you want to search the description column of the videos table. You know that the description column contains references to videos that explain how to use multimedia document editors, but you are not sure if the editors are consistently described as multimedia document editors or multimedia text editors.
To perform this search, use a synonym list entry for the words document and text.
SELECT id, description from videos
WHERE etx_contains(description,
Row('document', 'MATCH_SYNONYM = syn_list'));
SELECT id, description from videos
WHERE etx_contains(description,
Row('document', 'MATCH_SYNONYM = syn_list2'));
quick speedy fast
monitor terminal CRT screen
In this example, quick and monitor are the root words. A word must be present as a root word for the synonyms of the word to be used. This means that if you want to search for synonyms of speedy, it must itself be listed as a root word; it is not enough to simply exist as a synonym for quick in the synonym list.
$INFORMIXDIR/extend/ETX.version/wordlist/etx_thesaurus.txt
where version is
the current version of the DataBlade module
installed on your computer. If a query refers to the etx_thesaurus synonym list, and the list does not exist, the returns an error.
For example, assume that you execute a text search and specify the PATTERN_ALL and MATCH_SYNONYM tuning parameters and that the specified synonym list contains the root word abandon with one synonym: surrender. The search returns documents that contain the word abanden, a pattern match of the root word abandon, but does not return documents that contain the word surender, a pattern match of the synonym surrender.