On Fri, 16 Jul 1999, Clarkson, Paul [IBM GSA] wrote:
 
> Is there a way to search only part of a single database ?

Yes.

> ie If we have the contents of our website divided into precincts based on
> the
> directory hierarchy and I want to be able to give people the ability to
> search
> any number of, or the all of these directories/precincts if I create one
> index
> for the entire site, can I search only the selected directories ?  Do I need
> to
> create multiple databases ??  This is something we used to do by creating an
> index for each possible combination of precincts to select and searching
> this
> index as the form was submitted. ???

You can use the restrict CGI parameter to restrict your search in the
database.

You have:  <site>/x
           <site>/y
           <site>/z

make an option in the search page like

search only: <SELECT NAME="restrict">
<OPTION VALUE="<site>/x">X</OPTION>
..
<OPTION VALUE=<site>/x|<site>/Y>X and Y</OPTION>
</SELECT>

Note the | sign. It's used to concatenate two or more items
Note however that you are using one and the same configuration file
so output markup and things are the same.


 --jesse
--------------------------------------------------------------------
J. op den Brouw                           Johanna Westerdijkplein 75
Haagse Hogeschool                                  2521 EN  DEN HAAG
Sector Techniek                                          Netherlands
Afdeling Elektrotechniek                              +31 70 4458936
-------------------- [EMAIL PROTECTED] --------------------

Linux - because reboots are for hardware changes

------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.

Reply via email to