According to Wenge Fu:
> Hi Gilles,
> 
>      Thank you so much for your quick response.    After I moved the files in
> the /home/http/htdig/db/ directory to a  temporary place, I run the "rundig"
> program to rebuild the database,   it takes a very long time to build the db
> files:
> 
> The "rundig" created two database files:  db.docdb,  and  db.wordlist.   (Right
> now it is still under running  (6 hrs))
> 
>       After run the "rundig",   what other should I do to created the
> db.words.db  file.  Does the "rundig" will automatically merge the db.docdb  and
> db.wordlist  files to  db.words.db file?   Thank you very much again for help.
> 
> Best Regards!
> 
> Wenge

Yes, the rundig script will automatically run htmerge after htdig
completes, to produce the db.words.db file from db.wordlist.  It's just a
simple shell script, which you can look at to see which programs it runs.

Depending on the size and speed of your site, it may take a long time
to run htdig.  I happen to be able to index my site in under 3 minutes,
but I only have at most 500 documents, and I index using local_urls,
so it goes very quickly.  There are some htdig users that need a whole
weekend to rebuild their databases from scratch.

If rebuilding from scratch is too slow on your site, you'll want to look
into updating your existing databases rather than rebuilding them from
scratch each time.  That means that instead of using the rundig script,
you should switch to an alternate one that does updates, such as the
one at:

  http://www.htdig.org/files/contrib/scripts/rundig.sh

But, only do this when your existing database is solid and working
correctly.  If the database shows any symptoms of corruption, you really
should rebuild it from scratch.

> Gilles Detillieux wrote:
> 
> > According to Wenge Fu:
> > >      We use  ht://Dig 3.1.4  on our web site
> > > (http://www.cadops.bnl.gov/Controls/) for doing internal search. It
> > > works well for a while.  But recently, it doesn't work.   When we do a
> > > search,   it reports how many matches found, but doesn't display the
> > > results.   Could you please tell me what could be the reason?  Many
> > > thanks in advance.
> >
> > This is most likely due to a corrupted database, which you'd need to
> > rebuild from scratch, using "rundig" (or "htdig -i" then "htmerge").
> > You should also upgrade to version 3.1.5, as all earlier versions have
> > some pretty nasty bugs, especially a security problem in htsearch.


-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] 
You will receive a message to confirm this. 


Reply via email to