This topic provides information about how to set up a thesaurus dictionary file for use with the Webserver search engine with the IBM® Web Administration for i5/OS™ interface.
The thesaurus support allows you to automatically expand a search query by using a thesaurus. To make sure information is always found in your indexed documents, you can create your own thesaurus in which you can list common terms and associate them with the terms that exist in your documents. For example, if a person typically searches for PC but your documents only refer to a personal computer, just add PC to your thesaurus as a synonym of personal computer. You must first create a thesaurus definition file that contains terms that are related. Then you build the thesaurus dictionary to be used by the Webserver search engine. See Build the thesaurus dictionary for more information.
To create a thesaurus definition file, do the following:
A thesaurus definition file consists of blocks containing elements. Each element of the block is defined by a capitalized keyword. The block also contains terms that are single or multiple words. For example "cake" and "chocolate cake" are terms.
Each block starts with :WORDS followed on the same line by one of the following:
RELATED Where :RELATED indicates related terms that are not synonyms. :SYNONYM Where :SYNONYM indicates terms that are synonyms.
Member terms are listed in the block starting on the second line of the block, one term per line. For example:
:WORDS:SYNONYM PC personal computer
The following relationships can also be specified within the block:
A related term is specified on the same line as the relationship. A term is a single or multiple words. The relationships can be specified in any order within the block. For example the two following blocks are interpreted exactly the same:
:WORDS rain snow hail .LOWER_THAN precipitation .RELATED_TO weather :WORDS .LOWER_THAN precipitation .RELATED_TO weather rain snow hail
When creating a thesaurus definition file, keep the following in mind:
After you have created a thesaurus dictionary, you can manage a thesaurus dictionary . See Manage a thesaurus dictionary for the Webserver search engine on HTTP Server for more information. To use the dictionary on a search, select your index and the search option. After you have selected to do a simple or advanced search, you will reach a form that allows you to add a thesaurus dictionary to your search.
To build the thesaurus dictionary, allowing it to be used by the Webserver search engine, do the following: