-e option

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

-e option

Post 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?

User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

-e option

Post 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.
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

-e option

Post 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

Post Reply