mg_stem_idx(1)

NAME
mg_stem_idx - builds a stem index file

SYNOPSIS
mg_stem_idx [ -h ] [ -F ] [ -b num ] [ -d directory ]
-s 1|2|3 -f name

DESCRIPTION
mg_stem_idx generates a stem index file for a collection that is to be built with stem indexes. This program should be called three times: once for each -s parameter. It uses the stemmed dictionary to create the stem index which contains pointers into the stemmed dictionary.

OPTIONS
Options may appear in any order.

-h  This displays a usage line on stderr.

-b num
    The dictionary is stored in blocks on disk; this option is used to set the block size. The default is 4-KB blocks.

-F  This option causes the disk blocks to be aligned on the appropriate boundaries. For example, if 4-KB blocks are used, they will be aligned in the file on 4-KB boundaries.

-s 1|2|3
    The stem method to apply for the stem index.
    1 = casefolded and non-stemmed
    2 = non-casefolded and stemmed
    3 = casefolded and stemmed

-d directory
    This specifies the directory where the document collection can be found.

-f name
    This specifies the base name of the document collection.

ENVIRONMENT

MGDATA
    If this environment variable exists, then its value is used as the default directory where the mg(1) collection files are. If this variable does not exist, then the directory “.” is used by default. The command line option -d directory overrides the directory in MGDATA.

FILES

*.invf.dict.blocked
    Compressed stemmed dictionary.

*.invf.dict.blocked.1
    Stem index with stem index method 1.

*.invf.dict.blocked.2
    Stem index with stem index method 2.

*.invf.dict.blocked.3
    Stem index with stem index method 3.

SEE ALSO
mg(1), mg_invf_dict(1), mgstemidxlist(1).