DTSRDBFILES(4)
π dtsrdbfiles β the special file page, but make it cute π
okay so bestie, welcome to the dtsrdbfiles(special file) page β itβs giving βdatabase files explained by your favorite Unix gfβ and Iβm obsessed. π
β¨ NAME β¨
dtsrdbfiles β describes the complete set of DtSearch database files. thatβs the name vibe, periodt. π«Ά
πΈ DESCRIPTION πΈ
Each DtSearch database is a whole little set of core files that are created and maintained by the DtSearch offline build tools. Each database may also include a set of one or more language files that vary depending on the DtSearch language of the database. Some language files are part of the DtSearch package but may also be enhanced by the database developer. iykyk. π
All database files for a single database must be located in the same directory. no scattering them like confetti, fr fr. The directory is specified in the offline build tools by the optional path prefix in the -ddbname argument. The directory is specified for the online API by a PATH configuration file (ocf file). ποΈ
πΎ Core Files πΎ
The base name of the core files is formed by appending a period and 3-character name extension to the 1- to 8-character database name specified at creation time. Core files are binary and accessible only via DtSearch programs. vibe check: binary, so no peeking with random tools. π
The DtSearch core files are as follows:
dbname.dbeβ Database dictionary file. Binary schema created bydtsrcreatefromdtsearch.dbe. Never modified thereafter. itβs frozen, iconic, done. π§dbname.k00β Main key file for database documents. Created and initialized bydtsrcreate, updated bydtsrload. Contains the b-tree of unique keys for each document. πdbname.k01β Optional key file for database documents. Created and initialized bydtsrcreate. Contains the b-tree of optional keys for each document. Not currently used. lowkey chilling unused. π€dbname.d00β Documents header file. Created bydtsrcreate, updated bydtsrload. Contains the databaseβs configuration status record and, for each document in the database, a header record and one or more abstract records. πdbname.d01β Compressed text file. Created bydtsrcreate, but updated bydtsrloadonly forAusTexttype dataases. Repository of compressed text for each document. compressed text storage bestie. ποΈdbname.k21,dbname.k22,dbname.k23β" 10Key files for words and stems. Created and initialized bydtsrcreate, updated bydtsrindex. Contains the b-tree of each word and stem indexed for the database. Thek21file finds "short" words, 1 to 15 bytes, in thed21file. Thek22file finds "long" words, 16 to 39 bytes, in thed22file. Thek23file finds "huge" words, 40 to 133 bytes, in thed23file. Long and huge word files may not be used depending on the database maximum word size specified at creation time. π₯dbname.d21,dbname.d22,dbname.d23β" 10Data files for words and stems. Created and initialized bydtsrcreate, updated bydtsrindex. For each word contains document counts, offset to inverted index (d99file), and storage recovery data. Thed21file contains short words, thed22file contains long words, and thed23file contains huge words. Long and huge word files may not be used depending on the database maximum word size specified at creation time. π
π£οΈ Language Files π£οΈ
Databases also need a set of files associated with the DtSearch language of the database. When looking for these files DtSearch will first look for a customized version applicable only to a database, and then look for the generic language version. Like core files, the base file name of a customized language file is formed by the database name and a 3 character extension. The alternative generic language files are named with a language name and the same 3 character extension. main character energy: customized first, generic second. πββοΈ
Language files are mandatory or optional depending on the language. See dtsrlangfiles(4) for formats of language files.
The DtSearch language-related files are as follows:
dbname.stpβ Stop file. The supported stop files are:eng.stpβ forDtSrLaENGandDtSrLaENG2esp.stpβ forDtSrLaESPfra.stpβ forDtSrLaFRAdeu.stpβ forDtSrLaDEUita.stpβ forDtSrLaITA
Stop lists are mandatory for European languages, and optional for other supported languages. mandatory for European languages, optional elsewhere β noted. π
dbname.incβ An include list is always optional for all supported languages. There are no generic versions of include lists. no generic version, so donβt go looking for one. πeng.sfxβ ForDtSrLaENGandDtSrLaENG2, and is not currently required for other supported languages. β¨dbname.knjβjpn.knjforDtSrLaJPN2. A kanji compounds file is mandatory only for language number 7DtSrLaJPN2, a supported Japanese language. π
π Examples π
- Minimum
DtSrLaENGdatabase (English, ASCII) that uses no customized or optional files: All core files pluseng.stp,eng.sfx. DtSrLaITAdatabase (Italian, ISO Latin-1) with enhanced stop list and an include list: All core files plusdbname.stp,dbname.inc.- Minimum
DtSrLaJPNdatabase (Japanese with full, automatic kanji compounding) that uses no customized or optional files: Only core files. DtSrLaJPN2database (Japanese with kanji compounds from a word list), with optional stop list for ASCII substrings: All core files plusdbname.stp,jpn.knj.
π SEE ALSO π
dtsrcreate(1), dtsrload(1), dtsrindex(1), DtSrAPI(3), dtsrlangfiles(4), dtsrocffile(4), DtSearch(5)
thatβs the whole dtsrdbfiles(special file) manual page, bestie β source/version vibes only, no date listed on this one. mwah, go keep those database files organized π
π
π¦ 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