
From webmaster@www.nisu.flinders.edu.au Fri Apr  3 23:33:37 1998
Date: Wed, 4 Mar 1998 13:16:39 +1030 (CST)
From: webmaster@www.nisu.flinders.edu.au
To: lbierman@wesleyan.edu
Cc: htdig@sdsu.edu
Subject: Re: htdig: Searching new pages

On  3 Mar, Lee Bierman wrote:
> Hi,
> 
>         I set up htdig a few months ago, and it was working nicely for me.
> It searched my site and returned pages. Since then I took off all the old
> pages, and put up totally new ones... Now when i run the search it always
> comes up with no returns, or the old pages... how do i get it to reindex
> everything... do i have to do this often? please help.
> 
> Lee Bierman
>  
> 

Each time you make any changes to your site that you want reflected in
the search results, you need to reindex.

You can use the -a switch with htdig to create alternate db files so
searches can still be done while you are rebuilding the data files.
You'll have to copy the new files into the correct place yourself at
the end of the reindexing.

I use the following modification of the rundig program supplied...

#! /bin/sh

#
# updatedig
#
# This is a script to update the search database for ht://Dig.
#
if [ "$1" = "-v" ]; then
    verbose=-v
fi

# -a: run using alternate work files so search can still be done during index run
# -t: create an ASCII version of document database
# -s: print stats after completion
/web/webdocs/htdig/bin/htdig -a -t $verbose -s
/web/webdocs/htdig/bin/htmerge -a $verbose -s
/web/webdocs/htdig/bin/htnotify $verbose

#
# Only create the endings database if it doesn't already exist.
# This database is static, so even if pages change, this database will not
# need to be rebuilt.
#
if [ ! -f /web/webdocs/htdig/common/word2root.gdbm ]
then
    /web/webdocs/htdig/bin/htfuzzy $verbose endings
fi

if [ ! -f /web/webdocs/htdig/common/synonyms.gdbm ]
then
    /web/webdocs/htdig/bin/htfuzzy $verbose synonyms
fi

If you make frequent changes to your site, you could run this as a cron
job.


Cheers
-- 
David Robley

WEBMASTER                           | Phone +61 8 8374 0970
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet                            | http://auseinet/flinders.edu.au/
            Flinders University, ADELAIDE, SOUTH AUSTRALIA

----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig-request@sdsu.edu containing the single word "unsubscribe" in
the body of the message.
