Re: [htdig] multiple dbases from one search form?

2001-01-04 Thread htdighelp

>With the exception of the CONFIG_DIR setting for htsearch, you can
>easily change the defaults with the appropriate config settings, e.g.
>database_dir:

It was a piece of cake by just using another  directive, for now.
Just point to the what ever database. Basically, it seems that the simplest way to 
search
them all later would be to htmerge them all into one large one and offer that option in
your  option form the main form.

Looking good right now at least, thanks to all who have offered help so far.

Mike




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] multiple dbases from one search form?

2001-01-04 Thread Geoff Hutchison

On Thu, 4 Jan 2001, Douglas Kline wrote:

> directory, and direct htdig and htmerge to the appropriate htdig.conf file
> using the "-c" flag to those commands.  Is that the way to create multiple
> databases the above e-mail message refers to?

Yes. You have always been able to do this. I was commenting on the request
to search multiple config files from one search request. You could search
them individually, but not together.

> does not affect the pathnames used by htdig and htmerge and that the various 
> pathnames are hard-coded into those programs.

With the exception of the CONFIG_DIR setting for htsearch, you can easily
change the defaults with the appropriate config settings, e.g.
database_dir:



> If you do that have multiple databases, does the v. 3.2 code support a "-c" 
> flag for htsearch?  Is there any way to do it with v. 3.1.5?

Not really. Use the config field in the search form if you wish to pick a
different config file--using flags through the CGI is insecure (at best).

--
-Geoff Hutchison
Williams Students Online
http://wso.williams.edu/



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] multiple dbases from one search form?

2001-01-04 Thread Douglas Kline

> On Thu, 4 Jan 2001, Mike Paradis wrote:
> 
> > I've looked high and low for this answer but have not found it yet.
> > 
> > I know that I can create multiple databases but how can I search
> > multiple databases from one search form?
> 
> There's a good reason you haven't found it. It isn't supported in the
> current code.
> 
> This is supported in the 3.2 code, though it has received minimal testing
> (at best) at the moment and not much documentation exists there either.
> (Partly since the htsearch code is badly in need of a rewrite.)


The possibility of running more than one database from one ht-Dig installation
is of interest to us too.  I was planning to ask about it and thought I'd do so
now that it's been brought up.  I think that you could establish more than one
htdig.conf file, each one referring to a different location for the database
directory, and direct htdig and htmerge to the appropriate htdig.conf file
using the "-c" flag to those commands.  Is that the way to create multiple
databases the above e-mail message refers to?

I have found that changing the pathname definitions in rundig which includes
the line

DBDIR=/proj.solar/SOLAR-B/HTDIG/htdig.mail/htdig-3.1.5/HTDIG/db

does not affect the pathnames used by htdig and htmerge and that the various 
pathnames are hard-coded into those programs.

If you do that have multiple databases, does the v. 3.2 code support a "-c" 
flag for htsearch?  Is there any way to do it with v. 3.1.5?

TIA.

Douglas Kline



Douglas Kline
[EMAIL PROTECTED]




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] multiple dbases from one search form?

2001-01-04 Thread Gilles Detillieux

According to Mike Paradis:
> I've looked high and low for this answer but have not found it yet.
> 
> I know that I can create multiple databases but how can I search multiple databases 
>from 
> one search form?
> 
> >From the one search form, I would like users to enter which dbase they would like 
>to 
> search, dbase1 or dbase2 or dbase3 etc. Perhaps in the form of a radio button.
> 
> They then enter the keyword and the search would begin. 
> The only other way I can think of right now is to call a seperate htsearch process 
>for 
> each dbase. Also, if I can achieve this from within one form, would the system be 
>able to 
> handle multiple requests from different users?

If you use radio buttons, then you can only select one database at a time
anyway.  This can be done using the config input parameter to select the
one configuration file for the desired database.

On the other hand, if you use checkboxes or a select multiple list, then
you'd need Rajendra's patch for multiple database searching:

http://www.htdig.org/htdig3-dev/2000/03/0117.html

It's already in the 3.2 code base, as Geoff pointed out.  For 3.1.x, there
is a patch available by following the above link, but it's for 3.1.3, so
I don't know how smoothly it'll apply to 3.1.5.

The other option is to use htmerge to build up some combined databases
for all the combinations you're likely to need, and select them as single
databases using a select list or radio buttons.

-- 
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] multiple dbases from one search form?

2001-01-04 Thread Curtis Ireland

In the distributed search form, there is a tag
  

The value in the tag tell htsearch to use htdig.conf as the
configuration file. What you can do is create a .conf file for each
database you want search (eg htd1.conf, htd2.conf, ...). Use the
following code to select which database to search in:

Database: 
Database 1
Database 2
...


This will let you search different search databases using one search
form.
-C

Geoff Hutchison wrote:
> 
> On Thu, 4 Jan 2001, Mike Paradis wrote:
> 
> > I've looked high and low for this answer but have not found it yet.
> >
> > I know that I can create multiple databases but how can I search
> > multiple databases from one search form?
> 
> There's a good reason you haven't found it. It isn't supported in the
> current code.
> 
> This is supported in the 3.2 code, though it has received minimal testing
> (at best) at the moment and not much documentation exists there either.
> (Partly since the htsearch code is badly in need of a rewrite.)
> 
> --
> -Geoff Hutchison
> Williams Students Online
> http://wso.williams.edu/
> 
> 
> To unsubscribe from the htdig mailing list, send a message to
> [EMAIL PROTECTED]
> You will receive a message to confirm this.
> List archives:  
> FAQ:


--
Curtis Ireland  - [EMAIL PROTECTED]
Solidum Systems - http://www.solidum.com
(T) (613)724-6004 x284  - (F) (613)724-6008


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] multiple dbases from one search form?

2001-01-04 Thread Geoff Hutchison

On Thu, 4 Jan 2001, Mike Paradis wrote:

> I've looked high and low for this answer but have not found it yet.
> 
> I know that I can create multiple databases but how can I search
> multiple databases from one search form?

There's a good reason you haven't found it. It isn't supported in the
current code.

This is supported in the 3.2 code, though it has received minimal testing
(at best) at the moment and not much documentation exists there either.
(Partly since the htsearch code is badly in need of a rewrite.)

--
-Geoff Hutchison
Williams Students Online
http://wso.williams.edu/



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