Hitachi

Hitachi Advanced Database Setup and Operation Guide


11.16.7 Adding synonym groups

This subsection describes how to add synonym groups to a synonym dictionary.

Example:

In this example, a synonym group is added to synonym dictionary Dictionary1. The following synonyms are registered in the synonym group to be added:

  • WWW server, Web server

Procedure:

  1. Modify the contents specified in the saved synonym list definition file.

    <Contents specified in the synonym list definition file>

    database,data bank,DB↓
    application server,AP server↓
    WWW server,Web server↓

    Legend: ↓: Line feed

    Modify the saved synonym list definition file for Dictionary1. In this example, synonym groups are added.

    Important

    Keep specifying the unchanged synonym groups as they were. In the preceding example, keep specifying the first line (the line that contains "database") and the second line (the line that contains "application server") as they were. If you do not specify the first and second lines in the preceding example, the synonym group for these lines will be deleted.

    This example assumes that the synonym list definition file for Dictionary1 is saved with the following file name:

    • /home/adbmanager/dictionary1_synonym.txt

  2. Check the contents specified in the saved dictionary creation file.

    <Contents specified in the dictionary creation file>

    Dictionary1,/home/adbmanager/dictionary1_synonym.txt,CORRECTIONRULE,"terms related to DB, AP server, and Web server"

    Legend: ↓: Line feed

    Check the contents specified in the saved dictionary creation file. If you need to modify the comment due to addition of synonym groups, modify the comment. In this example, the comment (the underlined part) is modified.

    Note

    Because , is specified in the comment, the comment is enclosed by ".

    This example assumes that the dictionary creation file is saved with the following file name:

    • /home/adbmanager/dictionary1_information.txt

  3. Check the free space of the directory for storing the synonym dictionary file.

    For details about how to check the free space, see 11.16.12 Checking the free space required for the directory for storing synonym dictionary files.

  4. Execute the adbsyndict command to update the synonym dictionary.

    adbsyndict -m /home/adbmanager/dictionary1_information.txt

    For the -m option, specify the name of the absolute path to the dictionary creation file that you checked in step 2.

  5. Make a backup of the directory for storing synonym dictionary files.

    If you update the synonym dictionary, the relevant synonym dictionary files are updated. In case a failure occurs in a synonym dictionary file, make a backup of the directory for storing synonym dictionary files. If a failure occurs in a synonym dictionary file when you have not made a backup, you need to re-create the synonym dictionary file by using the adbsyndict command.

    The directory for storing synonym dictionary files is the directory specified for the adb_syndict_storage_path operand in the server definition.

Note
▪ Deleting synonym groups

The procedure for deleting synonym groups is almost the same as the procedure for adding synonym groups that is described here. In step 1 Modify the contents specified in the saved synonym list definition file, delete unnecessary synonym groups.