IBM Books
(C) IBM Corp. 2000

DB2 Net Search Extender Administration and User's Guide

DB2EXTTH (Utility)

This independent utility compiles a thesaurus definition file. After running the thesaurus compiler, the THESAURUS-related features of the search argument syntax can be used.

Authorization

None. This command is not necessarily restricted for the table owner, but makes only sense in the context of querying.

Command syntax

>>-db2extth----------------------------------------------------->
 
>--+-+-------+-- -ccsid--code page-- -f--definition-file-name-+-><
   | '-quiet-'                                                |
   +- -h------------------------------------------------------+
   +- -H------------------------------------------------------+
   +- -?------------------------------------------------------+
   '- -copyright----------------------------------------------'
 
 

Command parameters

-f definition-file-name
The name of the file containing the thesaurus definition. The file name must contain either the absolute path or the relative path to the file. The file name is restricted to 8+3 characters, the extension being optional.

The thesaurus dictionary is generated in the same directory as the definition file and has the same name. The only difference is that the dictionary has the following extensions: wdf, wdv, grf, grv, MEY, ROS, NEY, SOS, and Ikn, where n is a digit. Note that if existing thesaurus files have the same name, they are overwritten.

-ccsid code page
The code page in which the thesaurus definition file is written. See Appendix L, Thesaurus supported CCSIDs for a list of the supported code pages for a thesaurus.

-quiet
Output information is not displayed.

-copyright
Returns the internal build number of the product. Use this number when reporting problems.

-h, -H, or -?
Displays help information.

Usage

Use this command to compile a thesaurus definition file into a binary thesaurus definition format.

Note

The format is the same as in DB2 Text Information Extender Version 7.2 with the following changes:

  • The new relationships BROADER and NARROWER are equivalent to the HIGHER_THAN and LOWER_THAN relationships previously used in Text Information Extender. To refer to these older search relationships, the new relationships must be used.
  • Also note that the thesaurus dictionary files must be stored in <os-dependent>/sqllib/db2ext/thes to be usable during search, unless the thesaurus is fully qualified in the query.

For additional information, see Chapter 10, Using a thesaurus to expand search terms.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]