Sorry, New User

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

Sorry, New User

Post by Thunderstone »



Hi,

I HOPE I've spent sufficient time with the documentation and KB articles,
that these questions are reasonably legitimate:

1. If, for instance, I've walked www.bob.com, www.bill.com and www.john.com
and I want to set the search form to limit output to only one of these
domains, how do I do it. I indexed using a single database (the default
"db"). What I'm, obviously, trying to accomplish, is a way for virtual sites
to access the db and limit the searches to their own domains.

2. Are the command line arguments -I and -f additive. e.g. is
"gw -fasp -fcfm www.bob.com" correct?

3. I'm having difficulty understanding retention of options. If I use a
command line option(s) when doing a walk, are they always there when doing a
rewalk.

Thanks for your time.

Steve Mills



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

Sorry, New User

Post by Thunderstone »





It sounds like you'll always be searching a single site at a time. In that case
you should walk each site into a separate database, ie.
gw -dbob http://www.bob.com
gw -dbill http://www.bill.com
etc.
Then set the database in each site's search form by setting the db variable,
eg. in a hidden field. See the manual at
http://www.thunderstone.com/gw25man/node27.html

If you'll be searching one site sometimes and all sites at other times
you can put them all in one database as you have and add a "matches" to
the <sql> where clause as appropriate. Something like:
... and Url matches 'www.bob.com%' ...



-I is unique (one value), but -f is additive.


The current options are saved each time gw is run. If -rewalk is given,
these saved options are used instead of any other command line options.
If you do not use -rewalk, only the current command line options are used.



Post Reply