DTSRCREATE(1)
π NAME π
okay bestie, welcome to the dtsrcreate page from the dtsrcreate(user cmd) manual β yes, the name is doing a little header/footer mirror moment, we love that for us π
. This command creates and initializes a DtSearch database. That's the whole assignment. Periodt. β¨
β¨ SYNOPSIS β¨
dtsrcreate [-q] [-o] [-fd] [-fa] [-aabstr] [-ddir] [-wnmin] [-wx max] [-llang] dbname
πΈ DESCRIPTION πΈ
so dtsrcreate creates and initializes an instance of a DtSearch database. A DtSearch database is literally a set of related files β like a little file family π«Ά. If the specified database already exists, after prompting for confirmation, dtsrcreate will erase and reinitialize the preexisting database. Yes, bestie, it will wipe it after asking. Be normal about that. π
π Database Name π
The dbname argument is the database name. It's a 1 to 8 ascii character string used at creation time as a base file name, and as a general database identifier thereafter. All created database files are named by assembling the base name, plus a period and a 1 to 3 ASCII character suffix. The database names dtsearch and austext are reserved and may not be specified. No exceptions, bestie. π
π Target Directory π
The dbname argument can include an optional path prefix. If it does, the database files will be created and initialized in the specified target directory. If no path prefix is specified, the target directory is the current working directory. It's giving "wherever you're standing, that's home" π.
π Model File π
One of the created database files is based on a model file, dtsearch.dbe, provided with DtSearch. Database creation will fail if the model file cannot be found. dtsrcreate looks for the model file:
- first in the directory specified by a command line option, if any;
- secondly in the current working directory;
- and thirdly in the optional
dbnametarget directory.
like it's checking the group chat, then the DMs, then the close friends story π.
π Configuration Options π
DtSearch databases can be customized with a number of configuration options that are specified only at creation time. Initialization consists of loading into the database a configuration and status record identifying the configuration options for the particular database instance. After initialization, dtsrcreate prints a small report of the current contents of the configuration record to stdout. (See also dtsrdbrec(1), which prints the report without changing the database). Cute little receipt behavior, honestly. π§Ύβ¨
π Database Types π
The customizable features available at database creation time fall into clusters of related capabilities that constitute a set of basic database types. When you select a database type, you prespecify a number of features that are optimized for the basic type of database you want. It's giving "choose your fighter" but make it storage architecture π
In the DtSearch database type, documents are not stored in a repository and are not available from the search engine after a search. The abstract returned from a search typically contains a document reference, usually the file name, and the application is itself responsible for accessing the document. Hilighting of search words is possible when the application passes the document cleartext back to the DtSearch API.
In an AusText database type, compressed documents are stored directly into a repository and the originals are thereafter ignored. The abstracts returned from searches are typically descriptive of the documents they represent, and are displayed directly to users. Documents can be retrieved from an AusText type database through the API, and the search words are highlighted as desired. slay. π
π 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 little space bar moment, bestie. π«
-qβ suppresses printing of configuration record report.-oβ suppresses overwrite prompt; preauthorizes erasure and reinitialization of preexisting database.-ddirβ specifies where to find the modeldtsearch.dbefile, rather than in the current working directory or target directory.-fdβ configure a DtSearch type database. This is the default.-faβ configure an AusText type database.-aabstrβ set the maximum abstract size toabstrbytes. This is the maximum permitted length in characters for an abstract string. To optimize space considerations in the database the choice for abstract length may be adjusted upward. Default size depends on the specified database type. (Seedtsrfzkfiles(4)andDtSearch(5)for more information about abstract fields.)-wnminβ change minimum word size tomincharacters. This is the minimum word size in characters to be indexed in the database. Document and query words shorter than the minimum are treated as stop list words (seedtsrfzkfiles(4)). The minimum can be overridden for specific individual words by adding them to the optional include list file (seedtsrfzkfiles(4)). For most natural languages the default minimum word size is usually correct; permitting very short words will usually cause a significant increase in the storage requirements for the database. This option is typically applicable to single-byte European languages and may be ignored by multibyte language processors. (SeeDtSearch(5)for more information about DtSearch word sizes).-wxmaxβ change maximum word size tomaxcharacters. This is the maximum word size in characters. Smaller is better since extraordinarily long words in most documents do not represent words at all, but nonsemantic symbol strings. To optimize space considerations in the database, the choice for maximum word size will usually be adjusted upward. For most natural languages the default maximum word size is usually correct. This option is typically applicable to single-byte European languages and may be ignored by multibyte language processors. (SeeDtSearch(5)for more information about DtSearch word sizes).-llangβ change the language number tolang. The default is0.
Supported languages include:
0βDtSrLaENGβ English, ASCII character set1βDtSrLaENG2β English, ISO Latin-1 character set2βDtSrLaESPβ Spanish, ISO Latin-1 character set3βDtSrLaFRAβ French, ISO Latin-1 character set4βDtSrLaITAβ Italian, ISO Latin-1 character set5βDtSrLaDEUβ German, ISO Latin-1 character set6βDtSrLaJPNβ Japanese, packed EUC character set; all possible kanji substrings are indexed7βDtSrLaJPN2β Japanese, packed EUC character set; only individual kanjis are indexed, plus compounds from aknjlanguage file
Specifying an unsupported language number will establish a DtSearch custom language for the database. (See DtSearch(5) for information about DtSearch languages).
π¦ OPERAND π¦
The dbname operand specifies the new DtSearch database. It consists of an optional path prefix, a 1- to 8-character database name, an optional period, and an optional 1- to 3-character extension. This is the name that the other build tools and the the search API will use to reference the database. (Yes, the manpage literally says "the the" β I'm preserving the lore, bestie ππ«Ά)
π ENVIRONMENT VARIABLES π
None. Not a single little environment variable. The void. π
β RESOURCES β
None.
π ACTIONS/MESSAGES π
None.
π₯ RETURN VALUES π₯
The return values are as follows:
0βdtsrcreatecompleted successfully.- non-zero β
dtsrcreateencountered an error.
π FILES π
dtsrcreate reads dtsearch.dbe.
It creates or reinitializes the following database files:
dbname.d00dbname.d01dbname.d21dbname.d22dbname.d23dbname.k00dbname.k01dbname.k21dbname.k22dbname.k23
It deletes the file dbname.d99.
Note: not all necessary database files are created by dtsrcreate. Some additional files are included in the DtSearch distribution, are created by later database build programs, or may be provided by the developer. So this is not the whole friend group, just the ones this command brings to the party π
π§ EXAMPLES π§
Create a standard DtSearch type database named mydb that will index ASCII English words of standard length for that language.
dtsrcreate mydb
Create an AusText type database named jpndb. It will index Japanese words expressed in packed EUC, with automatic compounding of all kanji substrings. When the text contains embedded ASCII, words that are between 2 and 20 characters long will be indexed. At least 150 bytes will be available for the abstract field.
Caretdtsrcreate -fa -a150 -wn2 -wx20 -l6 jpndb
and yes, the manpage literally spells that second example Caretdtsrcreate β I'm copying it exactly, no edits, bestie ππ
π SEE ALSO π
π and that's the whole page, bestie β the footer is just dtsrcreate(user cmd), with no extra date or version line beyond that, so go make your database and serve cunt. π
β¨
π¦ 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