mgstat(1)

NAME
mgstat - print out statistics about a document collection

SYNOPSIS
mgstat [ -h ] [ -E ] [ -d directory ] -f name

DESCRIPTION
mgstat prints out various statistics about an existing mg(1) document collection. Depending on the size of the collection, sizes will be printed in either kilobytes or megabytes.

OPTIONS
Options may appear in any order.

-h  This displays a usage line on stdout.

-E  This option forces sizes to be printed in bytes rather than kilobytes or megabytes.

-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

*.text
    Compressed documents.

*.invf
    Inverted file.

*.text.idx.wgt
    Interleaved index into the compressed documents and document weights.

*.weight.approx
    Approximate document weights.

*.invf.dict.blocked
    Compressed stemmed dictionary and index into the inverted file merged into an inverted file.

*.text.dict.fast
    Fast loading compression dictionary.

*.text.dict
    Compressed compression dictionary.

*.invf.dict
    Compressed stemmed dictionary.

*.invf.idx
    The index into the inverted file.

*.text.stats
    Statistics about the text.

*.text.dict.aux
    Auxiliary compression dictionary.

*.text.idx
    Index into the compressed documents.

*.weight
    The exact weights file.

*.invf.chunk
    Maps stemmed terms from occurrence order to lexical order.

*.invf.chunk.trans
    Describes where the source text is broken up into chunks for the inversion pass.

*.invf.dict.hash
    A perfect hash function for the terms in the stemmed dictionary.

SEE ALSO
mg(1), mg_compression_dict(1), mg_fast_comp_dict(1), mg_get(1), mg_invf_dict(1), mg_invf_dump(1), mg_invf_rebuild(1), mg_passes(1), mg_perf_hash_build(1), mg_text_estimate(1), mg_weights_build(1), mgbilevel(1), mgbuild(1), mgdictlist(1), mgfelics(1), mgquery(1), mgtic(1), mgticbuild(1), mgticdump(1), mgticprune(1), mgticstat(1).