At 11:43 AM -0400 4/21/99, Patrick Dugal wrote:
>I don't understand the way htdig's -a option works because it doesn't seem
>to >be working 100% of the time for me.  I made an initial dig.  Next I
>moved the

Well, in all fairness the -a option is working correctly 100%. As
documented, it simply uses alternate files while digging so it doesn't
overwrite your current databases. This is exactly what it does and there's
no way it would not happen.

I know what you're asking, however. You want to understand why it seems to
do an update dig even when you have older databases around (but without the
.work extension). This didn't make much sense to me either when I started
using ht://Dig.

Here's the deal. If you use the -a option, it's as if you changed the name
of the databases in your config file to add a .work extension. In fact
that's *exactly* what it does internally. So when it tries to do an update
dig, it looks for old .work files. So here's what I leave around at the end
of an update dig:

total 617839
-rw-r--r--   1 htdig    htdig    206218240 Apr 21 06:48 db.docdb
-rw-r--r--   1 htdig    htdig    206218240 Apr 21 06:28 db.docdb.work
-rw-r--r--   1 htdig    htdig     5398528 Apr 21 06:28 db.docs.index
-rw-r--r--   1 htdig    htdig    151740313 Apr 21 06:43 db.wordlist.work
-rw-r--r--   1 htdig    htdig    65218560 Apr 21 06:43 db.words.db

>From my script:
# Move 'em into place. Since we only need db.wordlist to do update digs
# and we always use -a, we don't need to move it!
# mv $BASEDIR/db/db.wordlist.work $BASEDIR/db/db.wordlist
cp $BASEDIR/db/db.docdb.work $BASEDIR/db/db.docdb
# These are generated from htmerge, so we don't want copies of them.
mv $BASEDIR/db/db.docs.index.work $BASEDIR/db/db.docs.index
mv $BASEDIR/db/db.words.db.work $BASEDIR/db/db.words.db

There's good news. My hope for the 3.2 release is that you'll never need to
keep .work files! You'll be able to run htdig on your databases, have it
update as needed and have users search at the same time. Hopefully this
will give up enough disk space to make phrase searching worthwhile. :-)

-Geoff


------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.

Reply via email to