Page 1 of 1

-e option

Posted: Tue Mar 12, 1996 11:01 am
by Thunderstone


I 'm working with the Info Louisiana search engine. I'm trying to
automate the indexing process.
I am giving gw this -e option:
e"1999-12-31" (no dash because its in an option file)
so that each page and its references will be re-indexed every time.
Otherwise, a lower page change will not be re-indexed. However, when I
use this option, I get the message 'garbled time'. Can you help?


-e option

Posted: Tue Mar 12, 1996 12:26 pm
by Thunderstone



The quotes are to prevent the command shell from interpreting the string.
They are not needed in an option file. So use:
e1999-12-31

Given the date you are using, I guess you are regrabbing everything in
the database. It would generally be better to "-wipe" the database
then rewalk it.

-e option

Posted: Tue Mar 12, 1996 4:00 pm
by Thunderstone



If you are doing a complete update/rewalk, I would suggest the following
script be placed as a cron job:

gw -w0 -d/httpd/webinator/newdb http://www.mysite.com/
gw -index -d/httpd/webinator/newdb
mv /httpd/webinator/db /httpd/webinator/olddb
mv httpd/webinator/newdb /httpd/webinator/db
rm -rf /httpd/webinator/olddb


This will ensure that theres always a live index to search,
and will not disturb the live index while it's in use.

Bart Richards