Synonym dictionaries for Db2 Text Search

A synonym dictionary contains words that are synonyms of each other. You can use a synonym dictionary to search for synonyms of your query terms in a text search index, thus improving the results of your search queries.

Using a synonym dictionary, you can search for words specific to your organization, such as acronyms and technical jargon.

By default, a synonym dictionary is not used for a search. To use a synonym dictionary, you must explicitly add it to a specific text search index. The text search index needs to be updated at least once before you can add a synonym dictionary. After the synonym dictionary has been added, you can modify it as frequently as you want.

A synonym dictionary consists of synonym groups that you define in an XML file, as shown in the following example:
<?xml version="1.0" encoding="UTF-8"?> 
<synonymgroups version="1.0"> 
	<synonymgroup> 
		<synonym>ball</synonym> 
		<synonym>globe</synonym> 
		<synonym>sphere</synonym> 
		<synonym>orb</synonym> 
	</synonymgroup> 
	<synonymgroup> 
		<synonym>worldwide patent tracking system</synonym> 
		<synonym>wpts</synonym> 
	</synonymgroup> 
</synonymgroups>