GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
dtsrload(user cmd) dtsrload(user cmd)

dtsrload — Load document objects in a database

dtsrload-ddbname [-c] [-tetxstr] [-h0 | -hhashsz ] [-ehufname] [-pdotcnt] file

dtsrload loads document header information and, in AusText type databases, documents themselves into a DtSearch database. The input is a file of one or more documents in a simple canonical format (fzk file). An fzk file can be generated by dtsrhan manually with a text editor, or by a special application program created for the purpose. Typically the same fzk file is used for dtsrload and dtsrindex, but it is not required and there are situations where it may not be desirable. (See dtsrfzkfiles(4) for information about DtSearch fzk files).

dtsrload also maintains the current total document count in the database's configuration and status record.

If a document's unique key in the fzk file does not preexist in the database, dtsrload considers the document to be new and does not add it as a new document. If the document's key already exists in the database, dtsrload totally replaces its record with the one in the fzk file. When duplicate record ids are encountered in a single fzk file, only the first occurrence of the document is loaded into the database, the second one is discarded. Duplicate record ids are maintained during execution with a hash table.

dtsrload also performs a data compression function for documents that are actually stored in a database repository (that is, AusText type databases). In order to do this an encode compression huf file must be available. (See huffcode(1) for information about DtSearch document compression.)

dtsrload also performs a data compression function for documents that are actually stored in a database repository (that is, AusText type databases). In order to do this an encode compression huf file must be available. (See huffcode(1) for information about DtSearch document compression.)

dtsrload does not index the words used to access the database. This is done by dtsrindex. To prevent database link corruption, execute dtsrindex immediately after dtsrload.

Caution:

To prevent database corruption, execute dtsrload only after all users of a preexisting database have exited their search programs to prevent database corruption. For a single fzk file, dtsrload must be executed immediately before dtsrindex so that dtsrindex can map the words it indexes to the correct internal database addresses. Only after both programs successfully complete execution may users again be allowed to perform online searches of the database.

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.

Specifies the 1 to 8 ASCII character name of the database to be updated. If an optional directory path is not prepended to the database name, dtsrload will attempt to open the database from the current working directory. File name extensions for database files are automatically appended.
Instructs dtsrload to initialize the database total document count by counting existing records before loading the current batch. This option is usually not required.
Specifies the end of document text delimiter string. The default document separator in an fzk file is an ASCII form feed character followed by an ASCII line feed ('&'). For certain multibyte languages it may be more convenient to specify a nonASCII string as the document delimiter.
Instructs dtsrload to not check for duplicate record ids. This option should not be specified unless it is certain that there are no duplicate ids in the fzk file.
Sets the duplicate record id hash table size to hashsz. The default is 3000. dtsrload will execute more efficiently if the specified table size is larger than the number of documents in the fzk file.
Sets the compression encode file name to hufname. The default is ophuf.huf. The file name can include a path prefix. This option is ignored unless the database type is AusText.
Instructs dtsrload to print a progress character to stdout for every dotcount documents processed. The default is 20.

The required input file name (file) identifies the file to be processed by dtsrload. It can optionally include a path prefix, either from root or relative to the current working directory. If a file name extension is not specified, dtsrload assumes a default extension of .fzk.

None.

None.

None.

The return values are as follows:

0
dtsrload completed successfully.
1
dtsrload successfully recovered from an error. This occurs when one or more documents were discarded because of a partially invalid fzk file format, duplicate record ids, or empty record text.
>1
dtsrload encountered a fatal error.

dtsrload reads the specified fzk file and opens all the database and related language files for the specified database name.

For AusText type databases, it also reads the compression encode file ophuf.huf.

dtsrload updates the following database files:

dbname.d00
dbname.d01
dbname.k00
dbname.k01

Load database mydb with the documents specified in the fzk file named batch1.fzk in the current working directory.

dtsrload -dmydb batch1

Load database mydb with the documents specified in the fzk file /u/dtsearch/jpndocs.1. Three ASCII plus signs at the bottom of each document signals the end of document text and the beginning of the next fzk file record.

dtsrload -dmydb -t+++ /u/dtsearch/jpndocs.1

dtsrhan(1), dtsrindex(1), huffcode(1), dtsrfzkfiles(4), DtSearch(5)


Search for    or go to Top of page |  Section u |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.