Debian Codegraph @

debian/htload.html

raw
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
2 <html>
3 <head>
4 <title>
5 ht://Dig: htload
6 </title>
7 </head>
8 <body bgcolor="#eef7ff">
9 <h1>
10 htload
11 </h1>
12 <p>
13 ht://Dig Copyright &copy; 1995-2001 <a href="THANKS.html">The ht://Dig Group</a><br>
14 Please see the file <a href="COPYING">COPYING</a> for
15 license information.
16 </p>
17 <hr size="4" noshade>
18 <dl>
19 <dd>
20 <h2>
21 Synopsis
22 </h2>
23 </dd>
24 <dd>
25 htload [<em>options</em>]
26 </dd>
27 </dl>
28 <dl>
29 <dd>
30 <h2>
31 Description
32 </h2>
33 </dd>
34 <dd>
35 Htload reads in an ASCII-text version of the document
36 database in the same form as the -t option of htdig
37 and htdump. Note that this will overwrite data in your
38 databases, so this should be used with great care.
39 </dd>
40 </dl>
41 <dl>
42 <dd>
43 <h2>
44 Options
45 </h2>
46 </dd>
47 <dd>
48 <dl compact>
49 <dt>
50 -a
51 </dt>
52 <dd>
53 Use alternate work files. Tells htload to append <em>
54 .work</em> to database files, allowing it to
55 operate on a second set of databases.
56 </dd>
57 <dt>
58 -c <em>configfile</em>
59 </dt>
60 <dd>
61 Use the specified <em>configfile</em> file instead of the
62 default.
63 </dd>
64 <dt>
65 -i
66 </dt>
67 <dd>
68 Initial. Do not use any old databases. This is
69 accomplished by first erasing the databases.
70 </dd>
71 <dt>
72 -v
73 </dt>
74 <dd>
75 Verbose mode. This doesn't have much effect.
76 </dd>
77
78 </dl>
79 </dd>
80 </dl>
81
82 <dl>
83 <dd>
84 <h2>
85 File Formats
86 </h2>
87 </dd>
88 <dl>
89 <dt>
90 <h3>Document Database</h3>
91 </dt>
92 <dd>
93 <p>Each line in the file starts with the document id
94 followed by a list of
95 <strong><em>fieldname</em>:<em>value</em></strong>
96 separated by tabs. The fields always appear in the
97 order listed below:
98 </p>
99 <table border=0>
100 <tr> <th>fieldname</th> <th align="left">value</th></tr>
101 <tr> <td>u</td><td>URL</td></tr>
102 <tr> <td>t</td><td>Title</td></tr>
103 <tr> <td>a</td><td>State (0 = normal, 1 = not found, 2
104 = not indexed, 3 = obsolete)</td></tr>
105 <tr> <td>m</td><td>Last modification time as reported
106 by the server</td></tr>
107 <tr> <td>s</td><td>Size in bytes</td></tr>
108 <tr> <td>H</td><td>Excerpt</td></tr>
109 <tr> <td>h</td><td>Meta description</td></tr>
110 <tr> <td>l</td><td>Time of last retrieval</td></tr>
111 <tr> <td>L</td><td>Count of the links in the document
112 (outgoing links)</td></tr>
113 <tr> <td>b</td><td>Count of the links to the document
114 (incoming links or backlinks)</td></tr>
115 <tr> <td>c</td><td>HopCount of this document</td></tr>
116 <tr> <td>g</td><td>Signature of the document used for
117 duplicate-detection</td></tr>
118 <tr> <td>e</td><td>E-mail address to use for a
119 notification message from htnotify</td></tr>
120 <tr> <td>n</td><td>Date to send out a notification
121 e-mail message</td></tr>
122 <tr> <td>S</td><td>Subject for a notification e-mail
123 message</td></tr>
124 <tr> <td>d</td><td>The text of links pointing to this
125 document. (e.g. &lt;a
126 href=&quot;docURL&quot;&gt;description&lt;/a&gt;)</td></tr>
127 <tr> <td>A</td><td>Anchors in the document (i.e. &lt;A
128 NAME=...)</td></tr>
129 </table>
130 </dd>
131 <dt>
132 <h3>Word Database</h3>
133 </dt>
134 <dd>
135 <p>While htdump and htload don't deal with the word database
136 directly, it's worth mentioning it here because you need to
137 deal with it when copying the ASCII databases from one system
138 to another. The initial word database produced by htdig is
139 already in ASCII format, and a binary version of it is
140 produced by htmerge, for use by htsearch. So, when you copy
141 over the ASCII version of the document database produced by
142 htdump, you need to copy over the wordlist as well, then
143 run htload to make the binary document database on the target
144 system, followed by running htmerge to make the word index.
145 </p>
146 <p>Each line in the word list file starts with the word
147 followed by a list of
148 <strong><em>fieldname</em>:<em>value</em></strong>
149 separated by tabs. The fields always appear in the
150 order listed below, with the last two being optional:
151 </p>
152 <table border=0>
153 <tr> <th>fieldname</th> <th align="left">value</th></tr>
154 <tr> <td>i</td><td>Document ID</td></tr>
155 <tr> <td>l</td><td>Location of word in document (1 to 1000)</td></tr>
156 <tr> <td>w</td><td>Weight of word based on scoring factors</td></tr>
157 <tr> <td>c</td><td>Count of word's appearances in document, if more than 1</td></tr>
158 <tr> <td>a</td><td>Anchor number if word occurred after a named anchor</td></tr>
159 </table>
160 </dd>
161 </dl>
162 </dl>
163 <dl>
164 <dd>
165 <h2>
166 Files
167 </h2>
168 </dd>
169 <dd>
170 <dl>
171 <dt>
172 CONFIG_DIR/htdig.conf
173 </dt>
174 <dd>
175 The default configuration file.
176 </dd>
177 <dt>
178 DATABASE_DIR/db.docs
179 </dt>
180 <dd>
181 The default ASCII document database file.
182 </dd>
183 <dt>
184 DATABASE_DIR/db.wordlist
185 </dt>
186 <dd>
187 The default ASCII word database file.
188 </dd>
189 </dl>
190 </dd>
191 </dl>
192 <dl>
193 <dd>
194 <h2>
195 See Also
196 </h2>
197 </dd>
198 <dd>
199 <a href="htdig.html">htdig</a>,
200 <a href="htmerge.html">htmerge</a>,
201 <a href="htdump.html">htdump</a> and
202 <a href="attrs.html">Configuration file format</a>
203 </dd>
204 </dl>
205 <hr size="4" noshade>
206
207 Last modified: $Date: 2001/10/15 02:20:24 $
208
209 </body>
210 </html>