Hitachi

Hitachi Advanced Database Setup and Operation Guide


11.16.8 Registering a synonym dictionary

This subsection describes how to register a synonym dictionary.

Example:

In this example, synonym dictionary Dictionary2 is registered. In Dictionary2, the following synonyms are registered. (Only one synonym group is registered.)

  • HADB, Hitachi Advanced Database, HADB database

Procedure:

  1. Create a synonym list definition file for Dictionary2.

    <Contents specified in the synonym list definition file>

    HADB,Hitachi Advanced Database,HADB database↓

    Legend: ↓: Line feed

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

    • /home/adbmanager/dictionary2_synonym.txt

  2. Creating a dictionary creation file

    <Contents specified in the dictionary creation file>

    Dictionary2,/home/adbmanager/dictionary2_synonym.txt,CORRECTIONRULE,synonym of HADB↓

    Legend: ↓: Line feed

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

    • /home/adbmanager/dictionary2_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 register a synonym dictionary.

    adbsyndict -m /home/adbmanager/dictionary2_information.txt

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

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

    If you register a synonym dictionary, synonym dictionary files are added. 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