From: Rupert Jones <rupert@sa...> - 2004-03-25 16:06:10
Unsurprisingly, it's the simple things that get us.
There are actually two ways of doing it:
exclude: php html
Does the trick, or using <input type="hidden" name="exclude"
value="php|html"> in the search form also works. Doing it from the search
form overrides the value in the conf file (so <input type="hidden"
name="exclude" value=""> would bring you all search results, regardless of
excludes in the conf file).
Thanks for replying everyone. I should've read the documentation more
thoroughly (I was looking in the htdig configuration, not the htsearch
configuration, go figure!)
Telephone: +44 (0)1723 355999
'A stitch in time saves nine' - innovative e-business solutions.
CONFIDENTIALITY: Unless otherwise agreed expressly in writing by a director
of Save9 Ltd, this Email is to be treated as confidential and the
information in it may not be used or disclosed except for the purpose for
which it has been sent. If you have reason to believe that you are not the
intended recipient of this Email, please contact the sender immediately.
WARNING: Computer viruses can be transmitted by Email. The recipient should
check this Email and any attachments for the presence of viruses. Save9 Ltd
accepts no liability for any damage caused by any virus transmitted by this
Email. This Email and any attachments may not be copied or forwarded without
express written permission of a director of Save9 Ltd. In the event of any
unauthorised copying or forwarding, the recipient will be required to
indemnify Save9 Ltd against any claim for loss or damage caused by any
viruses or otherwise.
DISCLAIMER: Employees of Save9 Ltd are expressly required not to make any
defamatory statements and not to infringe or authorise any infringement of
copyright or any other legal right by Email communications. Any such
communication is contrary to company policy and outside the scope of the
employment of the individual concerned. Save9 Ltd will not accept any
liability in respect of such a communication, and the employee responsible
will be personally liable for any damages or other liability arising.
CONTRACTS: No employee or agent is authorised to conclude any binding
agreement on behalf of Save9 Ltd with another party by Email without express
written confirmation by a director of Save9 Ltd.
On Thu, 25 Mar 2004, Rupert Jones wrote:
> Unsurprisingly, it's the simple things that get us.
> There are actually two ways of doing it:
> Htdig.conf: placing
> exclude: php html
Just to be clear, 'exclude' is excluding results from the search. It is
not excluding those documents from the index. This is a little different
from what you originally asked about. The HTML and PHP files are still
being indexed and stored in the database as usual. That is why you found
this solution under the htsearch attributes rather than the htdig