DTSRDBFILES(4)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

πŸŽ€ 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 by dtsrcreate from dtsearch.dbe. Never modified thereafter. it’s frozen, iconic, done. 🧊
  • dbname.k00 β€” Main key file for database documents. Created and initialized by dtsrcreate, updated by dtsrload. Contains the b-tree of unique keys for each document. πŸ”‘
  • dbname.k01 β€” Optional key file for database documents. Created and initialized by dtsrcreate. Contains the b-tree of optional keys for each document. Not currently used. lowkey chilling unused. πŸ’€
  • dbname.d00 β€” Documents header file. Created by dtsrcreate, updated by dtsrload. 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 by dtsrcreate, but updated by dtsrload only for AusText type dataases. Repository of compressed text for each document. compressed text storage bestie. πŸ—œοΈ
  • dbname.k21, dbname.k22, dbname.k23 β€” " 10 Key files for words and stems. Created and initialized by dtsrcreate, updated by dtsrindex. Contains the b-tree of each word and stem indexed for the database. The k21 file finds "short" words, 1 to 15 bytes, in the d21 file. The k22 file finds "long" words, 16 to 39 bytes, in the d22 file. The k23 file finds "huge" words, 40 to 133 bytes, in the d23 file. 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 β€” " 10 Data files for words and stems. Created and initialized by dtsrcreate, updated by dtsrindex. For each word contains document counts, offset to inverted index (d99 file), and storage recovery data. The d21 file contains short words, the d22 file contains long words, and the d23 file 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 β€” for DtSrLaENG and DtSrLaENG2
    • esp.stp β€” for DtSrLaESP
    • fra.stp β€” for DtSrLaFRA
    • deu.stp β€” for DtSrLaDEU
    • ita.stp β€” for DtSrLaITA

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 β€” For DtSrLaENG and DtSrLaENG2, and is not currently required for other supported languages. ✨
  • dbname.knj β€” jpn.knj for DtSrLaJPN2. A kanji compounds file is mandatory only for language number 7 DtSrLaJPN2, a supported Japanese language. πŸ‘‘

🌈 Examples 🌈

  • Minimum DtSrLaENG database (English, ASCII) that uses no customized or optional files: All core files plus eng.stp, eng.sfx.
  • DtSrLaITA database (Italian, ISO Latin-1) with enhanced stop list and an include list: All core files plus dbname.stp, dbname.inc.
  • Minimum DtSrLaJPN database (Japanese with full, automatic kanji compounding) that uses no customized or optional files: Only core files.
  • DtSrLaJPN2 database (Japanese with kanji compounds from a word list), with optional stop list for ASCII substrings: All core files plus dbname.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