j  � ht://Dig: htload� � 0  

htload



W ht://Dig Copyright © 1995-2002 The ht://Dig Group
8 Please see the file COPYING for license information.






Synopsis



 htload [options]





 Description



7 Htload reads in an ASCII-text version of the document5 database in the same form as the -t option of htdig8 and htdump. Note that this will overwrite data in your4 databases, so this should be used with great care.





Options





 -a

8 Use alternate work files. Tells htload to append / .work to database files, allowing it to( operate on a second set of databases.

 -c configfile

< Use the specified configfile file instead of the default.

 -i

1 Initial. Do not use any old databases. This is/ accomplished by first erasing the databases.

 -v

/ Verbose mode. This doesn't have much effect.







 File Formats




"

Document Database



7

Each line in the file starts with the document id  followed by a list of4 fieldname:value4 separated by tabs. The fields always appear in the order listed below:

 : " $ 8 7 , & / 5 7 7 8 7 0 4 6 7 8
fieldname value
uURL
tTitle
aState (0 = normal, 1 = not found, 2( = not indexed, 3 = obsolete)
mLast modification time as reported by the server
sSize in bytes
HExcerpt
hMeta description
lTime of last retrieval
LCount of the links in the document (outgoing links)
bCount of the links to the document) (incoming links or backlinks)
cHopCount of this document
gSignature of the document used for duplicate-detection
eE-mail address to use for a. notification message from htnotify
nDate to send out a notification e-mail message
SSubject for a notification e-mail message
dThe text of links pointing to this document. (e.g. <a= href="docURL">description</a>)
AAnchors in the document (i.e. <A NAME=...)




Word Database



>

While htdump and htload don't deal with the word database= directly, it's worth mentioning it here because you need to? deal with it when copying the ASCII databases from one system< to another. The initial word database produced by htdig is8 already in ASCII format, and a binary version of it is= produced by htmerge, for use by htsearch. So, when you copy= over the ASCII version of the document database produced by: htdump, you need to copy over the wordlist as well, then? run htload to make the binary document database on the target= system, followed by running htmerge to make the word index.

9

Each line in the word list file starts with the word followed by a list of4 fieldname:value4 separated by tabs. The fields always appear in the7 order listed below, with the last two being optional:

 : * G F V R
fieldname value
iDocument ID
lLocation of word in document (1 to 1000)
wWeight of word based on scoring factors
cCount of word's appearances in document, if more than 1
aAnchor number if word occurred after a named anchor







Files





 CONFIG_DIR/htdig.conf

" The default configuration file.

 DATABASE_DIR/db.docs

2 The default ASCII document database file.

! DATABASE_DIR/db.wordlist

. The default ASCII word database file.







See Also



! htdig,% htmerge,& htdump and4 Configuration file format


, Last modified: $Date: 2002/01/27 05:33:20 $ ÿÿ