Hi Marc, You can indeed use one htsearch executable to run with as many different config files as you like. If you're creating html forms to do the searching from, in the form you just need something like the following:
<form action="/path/htsearch.exe" method="post"> ....... ....... <input type="hidden" name="config" value="htdig1"> </form> htsearch will then look for the config file, htdig1.conf when you search using that form. Then in another form you can put <input type="hidden" name="config" value="htdig2"> and htsearch will use the config htdig2.conf when you search from that form, and so on. You can use the exclude attribute similarly, so in one form you might have <input type="hidden" name="exclude" value="http://serverA"> if you want to exclude all serverA results. Also try using the restrict attribute (see http://www.htdig.org/attrs.html#restrict), so for example, if in the search form you had <input type="hidden" name="restrict" value="http://serverA">, htsearch would only return results for serverA and exclude the others. In the examples above I've used hidden fields, but of course you don't have to make them hidden - you could create one search form with a drop down list of the fields you want to exclude / restrict, so you can then do all your searching from one form, e.g. <select name="restrict"> <option value="">All servers</option> <option value="http://serverA">Server A only</option> <option value="http://serverB">Server B only</option> <option value="http://serverC">Server C only</option> </select> Hope that helps. I'd recommend you have a read through all the FAQ and all the attributes on the htdig site - there's some very useful things tucked away there! Also, always copy your emails to the htdig mailing list as then you're more likely to get an answer and may help someone else in the process. Regards, Rob. ----- Original Message ----- From: "Witte, Marc, VIS-TCR" <[EMAIL PROTECTED]> To: "'Rob Strange'" <[EMAIL PROTECTED]> Sent: Thursday, June 27, 2002 9:24 AM Subject: AW: [htdig] Multiple server indexing - shrink matchlist to one server? Hello Rob, thanks for the fast answer. In our situation it is necessary, that one gruop searches over all three servers and an other group searches just serverA. So how can we fullfill the wishes of both groups? Is it possible to run one htsearch.exe with "htdig.conf1" (without exlude--> all three servers) and "htdig.conf2" (with exclude --> serverA)? Kind regards Marc Witte Vodafone Vodafone Information Systems GmbH TCR - Service Reporting Rehhecke 50 D-40885 Ratingen Tel: +49 02102 97- 21 38 Fax: +49 02102 97- 22 08 mailto:[EMAIL PROTECTED] www.vodafone-is.de -----Urspr�ngliche Nachricht----- Von: Rob Strange [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 26. Juni 2002 14:24 An: Witte, Marc, VIS-TCR; [EMAIL PROTECTED] Betreff: Re: [htdig] Multiple server indexing - shrink matchlist to one server? Marc, Can you use the exclude attribute to achieve what you want? See http://www.htdig.org/attrs.html#exclude Rob. ----- Original Message ----- From: "Witte, Marc, VIS-TCR" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 26, 2002 12:49 PM Subject: [htdig] Multiple server indexing - shrink matchlist to one server? > Hello, > > First of all, congratulations to this perfomant search engine!!! > I have a question concerning the search results of HTDIG. > HTDIG here is indexing files from three different servers (each has a > different URL). In the results you can see the location of a document by the > listed link (http://serverA....../xy.htm or http://serverB......../ab.htm) > Now we want to shrink the matcht list to one server (e. g. serverA). > Is it possible, that HTDIG only gives search results for one specified > server (e. g. only the matches of serverA)? > (The possibility of installing a new instance of HTDIG for serverA can not > be done at the moment.) > > Kind regards > Marc Witte > > Vodafone Vodafone Information Systems GmbH > TCR - Service Reporting > Rehhecke 50 > D-40885 Ratingen > > Tel: +49 02102 97- 21 38 > Fax: +49 02102 97- 22 08 > mailto:[EMAIL PROTECTED] > www.vodafone-is.de > > > > > --------------------------------------------------------- > This Mail has been checked for Viruses > Attention: Encrypted mails can NOT be checked! > > ** > > Diese Mail wurde auf Viren geprueft > Hinweis: Verschluesselte mails koennen NICHT auf Viren geprueft werden! > --------------------------------------------------------- > > > > ------------------------------------------------------- > This sf.net email is sponsored by: Jabber Inc. > Don't miss the IM event of the season | Special offer for OSDN members! > JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn > _______________________________________________ > 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 > > > --------------------------------------------------------- This Mail has been checked for Viruses Attention: Encrypted mails can NOT be checked! ** Diese Mail wurde auf Viren geprueft Hinweis: Verschluesselte mails koennen NICHT auf Viren geprueft werden! --------------------------------------------------------- ------------------------------------------------------- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ _______________________________________________ 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

