| 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: Features and System requirements |
| 6 |
</title> |
| 7 |
</head> |
| 8 |
<body bgcolor="#eef7ff"> |
| 9 |
<h1> |
| 10 |
Features and System requirements |
| 11 |
</h1> |
| 12 |
<p> |
| 13 |
ht://Dig Copyright © 1995-2004 <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 noshade> |
| 18 |
<h2> |
| 19 |
Features |
| 20 |
</h2> |
| 21 |
<p> |
| 22 |
Here are some of the major features of ht://Dig. They are in |
| 23 |
no particular order. |
| 24 |
</p> |
| 25 |
<blockquote> |
| 26 |
<dl> |
| 27 |
<dt> |
| 28 |
<strong><img src="bdot.gif" width=9 height=9 alt="*"> |
| 29 |
Intranet searching</strong> |
| 30 |
</dt> |
| 31 |
<dd> |
| 32 |
ht://Dig has the ability to search through many servers |
| 33 |
on a network by acting as a WWW browser. |
| 34 |
</dd> |
| 35 |
<dt> |
| 36 |
<strong><img src="bdot.gif" width=9 height=9 alt="*"> |
| 37 |
It is free</strong> |
| 38 |
</dt> |
| 39 |
<dd> |
| 40 |
The whole system is released under the |
| 41 |
<a href="COPYING">GNU Library General Public License (LGPL)</a> |
| 42 |
</dd> |
| 43 |
<dt> |
| 44 |
<strong><img src="bdot.gif" width=9 height=9 alt="*"> |
| 45 |
Robot exclusion is supported</strong> |
| 46 |
</dt> |
| 47 |
<dd> |
| 48 |
The <a href="http://www.robotstxt.org/wc/norobots.html"> |
| 49 |
Standard for Robot Exclusion</a> is |
| 50 |
<a href="meta.html#robots">supported by ht://Dig.</a> |
| 51 |
</dd> |
| 52 |
<dt> |
| 53 |
<strong><img src="bdot.gif" width=9 height=9 alt="*"> |
| 54 |
Boolean expression searching</strong> |
| 55 |
</dt> |
| 56 |
<dd> |
| 57 |
Searches can be arbitrarily complex using boolean |
| 58 |
expressions. |
| 59 |
</dd> |
| 60 |
<dt> |
| 61 |
<strong><img src="bdot.gif" width=9 height=9 alt="*"> |
| 62 |
Phrase searching</strong> |
| 63 |
</dt> |
| 64 |
<dd> |
| 65 |
A phrase can be searched for by enclosing it in quotes. |
| 66 |
Phrase searches can be combined with word searches, as in |
| 67 |
<code>Linux and "high quality"</code>. |
| 68 |
</dd> |
| 69 |
<dt> |
| 70 |
<strong><img src="bdot.gif" width=9 height=9 alt="*"> |
| 71 |
Configurable search results</strong> |
| 72 |
</dt> |
| 73 |
<dd> |
| 74 |
The output of a search can easily be tailored to your |
| 75 |
needs by means of providing HTML templates. |
| 76 |
</dd> |
| 77 |
<dt> |
| 78 |
<strong><img src="bdot.gif" width=9 height=9 alt="*"> |
| 79 |
Fuzzy searching</strong> |
| 80 |
</dt> |
| 81 |
<dd> |
| 82 |
Searches can be performed using various |
| 83 |
<a href="attrs.html#search_algorithm">configurable algorithms</a>. |
| 84 |
Currently the following algorithms are |
| 85 |
supported (in any combination): |
| 86 |
<ul> |
| 87 |
<li> |
| 88 |
exact |
| 89 |
</li> |
| 90 |
<li> |
| 91 |
soundex |
| 92 |
</li> |
| 93 |
<li> |
| 94 |
metaphone |
| 95 |
</li> |
| 96 |
<li> |
| 97 |
common word endings |
| 98 |
</li> |
| 99 |
<li> |
| 100 |
synonyms |
| 101 |
</li> |
| 102 |
<li> |
| 103 |
accent stripping |
| 104 |
</li> |
| 105 |
<li> |
| 106 |
substring and prefix |
| 107 |
</li> |
| 108 |
<li> |
| 109 |
regular expressions |
| 110 |
</li> |
| 111 |
<li> |
| 112 |
simple spelling corrections |
| 113 |
</li> |
| 114 |
</ul> |
| 115 |
</dd> |
| 116 |
<dt> |
| 117 |
<strong><img src="bdot.gif" width=9 height=9 alt="*"> |
| 118 |
Searching of many file formats</strong> |
| 119 |
</dt> |
| 120 |
<dd> |
| 121 |
Both HTML documents and plain text files can be |
| 122 |
searched directly ht://Dig itself. There is also a |
| 123 |
<a href="attrs.html#external_parsers">mechanism |
| 124 |
to allow external programs ("external parsers")</a> to be used |
| 125 |
while building the database so that arbitrary file formats |
| 126 |
can be searched. <br> |
| 127 |
</dd> |
| 128 |
<dt> |
| 129 |
<strong><img src="bdot.gif" width=9 height=9 alt="*"> |
| 130 |
Document retrieval using many transport services</strong> |
| 131 |
</dt> |
| 132 |
<dd> |
| 133 |
Several transport services can be handled by ht://Dig, |
| 134 |
including http://, ftp:// and file:///. |
| 135 |
There is also a |
| 136 |
<a href="attrs.html#external_protocols">mechanism |
| 137 |
to allow external programs ("external protocols")</a> to be used |
| 138 |
while building the database so that arbitrary transport |
| 139 |
services can be used. <br> |
| 140 |
</dd> |
| 141 |
<dt> |
| 142 |
<strong><img src="bdot.gif" width=9 height=9 alt="*"> |
| 143 |
Keywords can be added to HTML documents</strong> |
| 144 |
</dt> |
| 145 |
<dd> |
| 146 |
Any number of <a href="meta.html">keywords</a> |
| 147 |
can be added to HTML documents |
| 148 |
which will not show up when the document is viewed. |
| 149 |
This is used to make a document more like to be found |
| 150 |
and also to make it appear higher in the list of |
| 151 |
matches. |
| 152 |
</dd> |
| 153 |
<dt> |
| 154 |
<strong><img src="bdot.gif" width=9 height=9 alt="*"> |
| 155 |
Email notification of expired documents</strong> |
| 156 |
</dt> |
| 157 |
<dd> |
| 158 |
Special meta information can be added to HTML documents |
| 159 |
which can be used to |
| 160 |
<a href="notification.html">notify the maintainer</a> of those |
| 161 |
documents at a certain time. It is handy to get |
| 162 |
reminded when to remove the "New" images from a certain |
| 163 |
page, for example. |
| 164 |
</dd> |
| 165 |
<dt> |
| 166 |
<strong><img src="bdot.gif" width=9 height=9 alt="*"> |
| 167 |
A Protected server can be indexed</strong> |
| 168 |
</dt> |
| 169 |
<dd> |
| 170 |
ht://Dig can be told to use a specific |
| 171 |
<a href="attrs.html#authorization">username and password</a> |
| 172 |
when it retrieves documents. This can be used |
| 173 |
to index a server or parts of a server that are |
| 174 |
protected by a username and password. |
| 175 |
</dd> |
| 176 |
<dt> |
| 177 |
<strong><img src="bdot.gif" width=9 height=9 alt="*"> |
| 178 |
Searches on subsections of the database</strong> |
| 179 |
</dt> |
| 180 |
<dd> |
| 181 |
It is easy to set up a search which only returns |
| 182 |
documents whose |
| 183 |
<a href="hts_form.html#restrict">URL matches a certain pattern.</a> |
| 184 |
This becomes very useful for people who want to make their |
| 185 |
own data searchable without having to use a separate |
| 186 |
search engine or database. |
| 187 |
</dd> |
| 188 |
<dt> |
| 189 |
<strong><img src="bdot.gif" width=9 height=9 alt="*"> |
| 190 |
Full source code included</strong> |
| 191 |
</dt> |
| 192 |
<dd> |
| 193 |
The search engine comes with full source code. The |
| 194 |
whole system is released under the terms and conditions |
| 195 |
of the <a href="COPYING">GNU Library General Public License (LGPL) version |
| 196 |
2.0</a> |
| 197 |
</dd> |
| 198 |
<dt> |
| 199 |
<strong><img src="bdot.gif" width=9 height=9 alt="*"> |
| 200 |
The depth of the search can be limited</strong> |
| 201 |
</dt> |
| 202 |
<dd> |
| 203 |
Instead of limiting the search to a set of machines, it |
| 204 |
can also be restricted to documents that are a certain |
| 205 |
number of <a href="attrs.html#max_hop_count">"mouse-clicks"</a> |
| 206 |
away from the start document. |
| 207 |
</dd> |
| 208 |
<dt> |
| 209 |
<strong><img src="bdot.gif" width=9 height=9 alt="*"> |
| 210 |
Full support for the ISO-Latin-1 character set</strong> |
| 211 |
</dt> |
| 212 |
<dd> |
| 213 |
Both SGML entities like '&agrave;' and ISO-Latin-1 |
| 214 |
characters can be indexed and searched. |
| 215 |
</dd> |
| 216 |
</dl> |
| 217 |
</blockquote> |
| 218 |
<hr size="4" noshade> |
| 219 |
<h1> |
| 220 |
Requirements to build ht://Dig |
| 221 |
</h1> |
| 222 |
<p> |
| 223 |
ht://Dig was developed under Unix using C++. |
| 224 |
</p> |
| 225 |
<p> |
| 226 |
For this reason, you will need a Unix machine, a C compiler |
| 227 |
and a C++ compiler. (The C compiler is needed to compile some |
| 228 |
of the GNU libraries) |
| 229 |
</p> |
| 230 |
<p> |
| 231 |
Unfortunately, we only have access to a couple of different |
| 232 |
Unix machines. ht://Dig has been tested on these machines: |
| 233 |
</p> |
| 234 |
<ul> |
| 235 |
<!-- |
| 236 |
<li> |
| 237 |
Sun Solaris 2.5 SPARC (using gcc/g++ 2.7.2) |
| 238 |
</li> |
| 239 |
<li> |
| 240 |
Sun SunOS 4.1.4 SPARC (using gcc/gcc 2.7.0) |
| 241 |
</li> |
| 242 |
<li> |
| 243 |
HP/UX A.09.01 (using gcc/g++ 2.6.0) |
| 244 |
</li> |
| 245 |
<li> |
| 246 |
IRIX 5.3 (SGI C++ compiler. Don't know the version) |
| 247 |
</li> |
| 248 |
<li> |
| 249 |
Debian Linux 2.0 (using egcs 1.1b) |
| 250 |
</li> |
| 251 |
--> |
| 252 |
<li> |
| 253 |
FreeBSD 4.6 (using gcc 2.95.3) <!-- lha --> |
| 254 |
</li> |
| 255 |
<li> |
| 256 |
Mandrake Linux 8.2 (using gcc 3.2) <!-- lha --> |
| 257 |
</li> |
| 258 |
<li> |
| 259 |
Debian, 2.2.19 kernel (using gcc 2.95.4) <!-- lha --> |
| 260 |
</li> |
| 261 |
<li> |
| 262 |
Debian on an Alpha <!-- lha --> |
| 263 |
</li> |
| 264 |
<li> |
| 265 |
RedHat 7.3, 8.0 <!-- Jim Cole --> |
| 266 |
</li> |
| 267 |
<li> |
| 268 |
Sun Solaris 2.8 = SunOS 5.8 (using gcc 3.1) <!-- lha --> |
| 269 |
</li> |
| 270 |
<li> |
| 271 |
Sun Solaris 2.8 = SunOS 5.8 (using Sun's cc / g++ 3.1) <!-- lha --> |
| 272 |
</li> |
| 273 |
<li> |
| 274 |
Mac OS X 10.2 (using gcc) <!-- Jim Cole --> |
| 275 |
</li> |
| 276 |
|
| 277 |
</ul> |
| 278 |
There are reports of ht://Dig working on a number of other platforms. |
| 279 |
<h3> |
| 280 |
libstdc++ |
| 281 |
</h3> |
| 282 |
<p> |
| 283 |
If you plan on using g++ to compile ht://Dig, you have to make |
| 284 |
sure that libstdc++ has been installed. Unfortunately, libstdc++ is a |
| 285 |
separate package from gcc/g++. You can get libstdc++ from the |
| 286 |
<a href="ftp://ftp.gnu.org/pub/gnu/">GNU software archive</a>. |
| 287 |
</p> |
| 288 |
|
| 289 |
<!-- The current Makefiles don't use include... |
| 290 |
<h3> |
| 291 |
Berkeley 'make' |
| 292 |
</h3> |
| 293 |
<p> |
| 294 |
The building relies heavily on the make program. The problem |
| 295 |
with this is that not all make programs are the same. The |
| 296 |
requirement for the make program is that it understands the |
| 297 |
'include' statement as in |
| 298 |
</p> |
| 299 |
<blockquote> |
| 300 |
<code>include somefile otherfile</code> |
| 301 |
</blockquote> |
| 302 |
<p> |
| 303 |
The Berkeley 4.4 make program doesn't use this syntax, instead |
| 304 |
it wants |
| 305 |
</p> |
| 306 |
<blockquote> |
| 307 |
<code>.include "somefile"</code><br> |
| 308 |
<code>.include "otherfile"</code> |
| 309 |
</blockquote> |
| 310 |
<p> |
| 311 |
and hence it cannot be used to build ht://Dig. |
| 312 |
</p> |
| 313 |
<p> |
| 314 |
If your make program doesn't understand the right 'include' |
| 315 |
syntax, it is best if you get and install |
| 316 |
<a href="ftp://ftp.gnu.org/pub/gnu/">gnumake</a> before you try |
| 317 |
to compile everything. The alternative is to change all the |
| 318 |
Makefiles. |
| 319 |
</p> |
| 320 |
--> |
| 321 |
<hr noshade> |
| 322 |
<h1> |
| 323 |
Disk space requirements |
| 324 |
</h1> |
| 325 |
<p> |
| 326 |
The search engine will require lots of disk space to store |
| 327 |
its databases. Unfortunately, there is no exact formula to |
| 328 |
compute the space requirements. It depends on the number of |
| 329 |
documents you are going to index but also on the various |
| 330 |
options you use. |
| 331 |
</p> |
| 332 |
<p>As a temporary measure, 3.2 betas use a very inefficient |
| 333 |
database structure to enable phrase searching. This will be |
| 334 |
fixed before the release of 3.2.0. Currently, indexing a site of |
| 335 |
around 10,000 documents gives a database of around 400MB using the |
| 336 |
default setting for |
| 337 |
<a href="attrs.html#max_doc_size">maximum document size</a> and storing the |
| 338 |
<a href="attrs.html#max_head_length">first 50,000 bytes of each document</a> |
| 339 |
to enable context to be displayed. |
| 340 |
<!-- To give you an idea of the space |
| 341 |
requirements, here is what I have deduced from our own |
| 342 |
database size at San Diego State University. |
| 343 |
</p> |
| 344 |
<p> |
| 345 |
If you keep around the wordlist database (for update digging |
| 346 |
instead of initial digging) I found that multiplying the |
| 347 |
number of documents covered by 12,000 will come pretty close |
| 348 |
to the space required. |
| 349 |
</p> |
| 350 |
<p> |
| 351 |
We have about 13,000 documents: |
| 352 |
</p> |
| 353 |
<pre> |
| 354 |
13,000 |
| 355 |
12,000 x |
| 356 |
=========== |
| 357 |
156,000,000 |
| 358 |
</pre> |
| 359 |
or about 150 MB. |
| 360 |
<p> |
| 361 |
Without the wordlist database, the factor drops down to about |
| 362 |
7500: |
| 363 |
</p> |
| 364 |
<pre> |
| 365 |
13,000 |
| 366 |
7,500 x |
| 367 |
=========== |
| 368 |
97,500,000 |
| 369 |
</pre> |
| 370 |
or about 93 MB. |
| 371 |
--> |
| 372 |
<p> |
| 373 |
Keep in mind that we keep at most 50,000 bytes of each |
| 374 |
document. This may seen a lot, but most documents aren't very |
| 375 |
big and it gives us a big enough chunk to almost always show |
| 376 |
an excerpt of the matches. |
| 377 |
</p> |
| 378 |
<p> |
| 379 |
You may find that if you store most of each document, the |
| 380 |
databases are almost the same size, or even larger than the |
| 381 |
documents themselves! Remember that if you're storing a |
| 382 |
significant portion of each document (say 50,000 bytes as |
| 383 |
above), you have that requirement, plus the size of the word |
| 384 |
database and all the additional information about each document |
| 385 |
(size, URL, date, etc.) required for searching. |
| 386 |
</p> |
| 387 |
<hr size="4" noshade> |
| 388 |
|
| 389 |
Last modified: $Date: 2004/05/28 13:15:19 $ |
| 390 |
|
| 391 |
</body> |
| 392 |
</html> |