Hitachi

Hitachi Advanced Database Setup and Operation Guide


11.16.10 Changing a synonym dictionary to support correction search

This subsection describes how to change a synonym dictionary that does not support correction search to a synonym dictionary that supports correction search.

Example:

In this example, synonym dictionary Dictionary3 that does not support correction search is changed to a synonym dictionary that supports correction search. The comment is also modified.

Procedure:

  1. Modify the contents specified in the saved dictionary creation file.

    <Contents specified in the dictionary creation file before change>

    Dictionary3,/home/adbmanager/dictionary3_synonym.txt,CASESENSITIVE,detailed term↓

    <Contents specified in the dictionary creation file after change>

    Dictionary3,/home/adbmanager/dictionary3_synonym.txt,CORRECTIONRULE,"detailed term,correction support"

    Legend: ↓: Line feed

    Modify the contents specified in the saved dictionary creation file for Dictionary3. In this example, the following changes are made.

    • Third line:

      Specification for the correction search option is modified from CASESENSITIVE to CORRECTIONRULE.

    • Fourth line:

      The comment is modified. Because , is specified in the comment, the comment is enclosed by enclosing character ".

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

    • /home/adbmanager/dictionary3_information.txt

  2. 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.

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

    adbsyndict -m /home/adbmanager/dictionary3_information.txt

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

  4. 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

When update of a synonym dictionary is completed in step 3, the KFAA51509-I message is output. (As many messages as the synonym dictionaries for which update is completed are output.) Identify the synonym dictionary name in the message, and confirm that update of the synonym dictionary is completed.