My methodology for handling multiple databases is quite simple.
Within the webinator directory I maintain a subdirectory for
databases (called 'db'). The databases are stored into separate
databases from here by making gw calls like:
gw -d<path_to_webinator>/db/www -mwww.set
www.infores.com
gw -d<path_to_webinator>/db/condev -mcondev.set condev.infores.com
The -m option contains specifics regarding how indexing should
work on both of these sites. See the documentation for more on
this option.
My directory structure will then look like this:
<path_to_webinator>
+---db
+---www
| :
| gw.log
| html.tbl
| :
| (and other database related files)
\---condev
:
gw.log
html.tbl
:
(and other database related files)
my search script then uses these standards to determine which
database to search (it can only be one or the other). The user
can select which database to use by changing the <select name=db>
that I added in.
Please note that, by default, gw will create a default database
called 'db' under the webinator directory, so in order to add a
new database, you may have to rethink a little.
Tim Rosine
tim.rosine@infores.com