Re: [htdig] restrict values and htdig.conf

2000-12-05 Thread Gilles Detillieux

According to [EMAIL PROTECTED]:
> We have 3 htdig-searches in our website.
> there are 3 different databases that are indexed:
> ../htdig/db/database1 indexed with ../conf/htdig1.conf
> ../htdig/db/database2 indexed with ../conf/htdig2.conf
> ../htdig/db/database3 indexed with ../conf/htdig3.conf
> 
> the database3 includes all sites while the other 2 databases contains only parts
> of the whole.
> 
> Now i want to expand the html-form with a select-option as follows:
> 
> 
> .. Database1
> http://www.../">on Database2
> http://www.../">on Database3
> 
> 
> 
> o.k.!
> 
> but how can i use this restrict-value in my htdig.conf?
> According to the selection in the html-form i must call the right htsearch with
> the right database!

You seem to be confusing two alternate methods of restricting search
results.  You use the restrict parameter on htsearch only when searching
a database that contains everything, in order to restrict the results
to a subset of that database, i.e. only the URLs that match a particular
pattern.

If you want the user to select separate databases, then you should leave
the restrict input parameter as an empty string, and have the user select
the value of the "config" input parameter, which should be one of htdig1,
htdig2 or htdig 3, i.e. the three configuration files you mentioned above
with the directory and .conf file name extension stripped off.

-- 
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 htdig mailing list, send a message to
[EMAIL PROTECTED]
You will receive a message to confirm this.
List archives:  
FAQ:




Re: [htdig] restrict values and htdig.conf

2000-12-04 Thread Daniel Naber

On 2000-12-04 14:03, [EMAIL PROTECTED] wrote:

> Now i want to expand the html-form with a select-option as follows:
>
> 
> .. Database1
> http://www.../">on Database2
> http://www.../">on Database3
> 
> 

Use conf="database1" etc. (or maybe config). this will chose the 
corresponding config file, i.e. it will also chose the database set in 
that file.

regards
 daniel


To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED]
You will receive a message to confirm this.
List archives:  
FAQ:




[htdig] restrict values and htdig.conf

2000-12-04 Thread Ulrich . Rebmann

We have 3 htdig-searches in our website.
there are 3 different databases that are indexed:
../htdig/db/database1 indexed with ../conf/htdig1.conf
../htdig/db/database2 indexed with ../conf/htdig2.conf
../htdig/db/database3 indexed with ../conf/htdig3.conf

the database3 includes all sites while the other 2 databases contains only parts
of the whole.

Now i want to expand the html-form with a select-option as follows:


.. Database1
http://www.../">on Database2
http://www.../">on Database3



o.k.!

but how can i use this restrict-value in my htdig.conf?
According to the selection in the html-form i must call the right htsearch with
the right database!

greetings
uli









To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED]
You will receive a message to confirm this.
List archives:  
FAQ: