DTSRKDUMP(1)
dtsrkdump π
β¨ (this is the dtsrkdump(user cmd) manual page, bestie)
NAME πΈ
dtsrkdump β produce reports about DtSearch database keys. Periodt.
SYNOPSIS π
dtsrkdump-o | -w | -ow [-v] [-tthreshold | -ppercent ] dbname
DESCRIPTION π
Okay so dtsrkdump is a convenience utility that traverses the word/stem, document, or both b-trees for the specified DtSearch database and prints a summary report about the keys to stdout. The -v option additionally prints a detailed key by key report. dtsrkdump can be used to confirm integrity of the b-trees, and to count and report currently available documents and keytypes. Iconic behavior, honestly.
OPTIONS π¦
The following options are available:
Note: If an option takes a value, the value must be directly appended to the option name without white space. No sneaky little space in between, bestie.
-oβ Instructsdtsrkdumpto produce a report for unique document keys. You must specify this argument or the-wor-owargument.-wβ Instructsdtsrkdumpto produce a report for word and stem keys. You must specify this argument or the-oor-owargument.-owβ Instructsdtsrkdumpto produce reports for both unique document keys and word and stem keys. You must specify this argument or the-oor-wargument.-vβ Specifies verbose mode, which generates a report item for every key in the database. Use this option with caution when working with very large databases. Like, for real, be careful with the big ones π-tthresholdβ Sets the frequency of occurrence threshold for reporting words to threshold.dtsrkdumpwill output only those words that occur in at least threshold records. Setting the threshold to1will output all words. If neither the-tnor-poption is specified, the default threshold is-t100.-tpercentβ Sets the frequency threshold for reporting words to a percentage of all records. percent is a floating-point number between0and100, and can include the decimal point.dtsrkdumpwill output only those words that occur in at least percent of all records. If neither the-tnor-poption is specified, the default threshold is-t100.
OPERAND π
The dbname argument specifies the name of the database to be traversed. A path prefix is optional. The database name is the 1 to 8 ASCII character string used at creation time.
ENVIRONMENT VARIABLES β
None. Not a single one, bestie.
RESOURCES π
None.
ACTIONS/MESSAGES π
None.
RETURN VALUES π«Ά
The return values are as follows:
0βdtsrkdumpcompleted successfully.- non-zero β
dtsrkdumpencountered an error.
FILES π
dtsrkdump opens all database files for dbname.
EXAMPLES π
Output a summary report on the objects (documents) in the local database named mydb. The summary report will print the document count for each keytype in the database.
dtsrkdump -o mydb
Output a summary report on the words and stems in the local database named mydb. The summary report will print the count of each index term in the database from the three word b-trees.
dtsrkdump -w mydb
Output every document key in database jpndb in directory /nix/store/6waxpwr8lzfzc9ka48gl7yh60rqvlkdb-cde-2.5.3search, plus a summary report of the document count for each keytype in the database, plus every word or stem that occurs in 20 or more documents, plus a summary report of counts of each term for the word b-trees. This one is giving full-debug main character energy β¨
dtsrkdump -ow -v -t20 /nix/store/6waxpwr8lzfzc9ka48gl7yh60rqvlkdb-cde-2.5.3search/jpndb
Output the same as the previous example except that the detail word and stem will only contain terms that occur in 80.5% or more of the database.
dtsrkdump -ow -v -p80.5 /nix/store/6waxpwr8lzfzc9ka48gl7yh60rqvlkdb-cde-2.5.3search/jpndb
SEE ALSO π§
And thatβs the whole dtsrkdump(user cmd) page, bestie β source/version tag is dtsrkdump(user cmd), and no date was listed on the page, so weβre officially calling it timeless ππ«
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms