From: umesh r. <ym...@ya...> - 2005-04-01 15:56:23
|
Hi, Currently we are using htdig search engine. In htdig.conf the start_url is configured as start_url http://localhost:8080/apps/letter/set1letters/ As you can see htdig will use /apps/letter/set1letters/ to index. So this will be searched by set1users using one search form. Now we have another set of users who wants to search the letters located at set2letters. set2letters is located under /apps/letter/ So the dir structure is /apps/letters/set1letters /apps/letters/set2letters We will be giving them separate form where they can search the letters from set2letters only. set1letters user are allowed to search their letters from set1letters only. So to this change, I did following changes. 1) modify htdig.conf for start_url set start_url to http://localhost:8080/apps/letter/ So it should index /apps/letters/set1letters /apps/letters/set2letters 2) set the restrict and exclude properties for first set of users as following <form action="http://localhost/cgi-bin/htsearch" method="post" target="_blank" name="lettersearch"> <input type="hidden" name="config" value="htdig"> <input type="hidden" name="exclude" value="/set2letters"> <input type="hidden" name="restrict" value="/set1letters"> 3) set the restrict and exclude properties for second set of users as following <form action="http://localhost/cgi-bin/htsearch" method="post" target="_blank" name="lettersearch"> <input type="hidden" name="config" value="htdig"> <input type="hidden" name="exclude" value="/set1letters"> <input type="hidden" name="restrict" value="/set2letters"> Will this configuration work? Am I missing anything? Please Help. Thanks & Regards. Umesh __________________________________ Do you Yahoo!? Yahoo! Personals - Better first dates. More second dates. http://personals.yahoo.com |