According to Pietro Palladino:
> Problem 1: my site has both html pages and documents (.doc, .rtf, etc.). Is
> there a way to index html pages in a database and documents in a different
> one?
>
> Problem 2: I'd like to search a word only in one of the two databases, how
> could I implement this kind of search?
First of all, are you sure you need 2 databases? You could do all
this using the restrict and exclude input parameters to htsearch,
to select which file extensions will be allowed in search results.
See http://www.htdig.org/FAQ.html#q4.20
If you still want to keep 2 separate databases, it can be a bit tricky.
excluding the .doc, .rtf, etc. from the HTML page DB is easy - just add
these to bad_extensions. Making a DB that excludes the HTML pages it
a bit harder, because normally you count on the HTML links to find your
way to the other documents. You'd need to build a list of URLs for the
documents you want for this 2nd DB, as shown towards the end of FAQ 5.25.
Then, you can select one of 2 config files from the search form, using
the config input parameter (see http://www.htdig.org/hts_form.html), where
each config file defines the database_dir or database_base for its own DB.
--
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
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html