Subject: Re: [htdig] odd little bug in htdig 3.1.4
From: Gilles Detillieux (email@example.com)
Date: Thu Feb 03 2000 - 13:17:59 PST
According to D.J.Adams@soton.ac.uk:
> I have found that if a page contains keywords with just a space in the
> contents, like so:
> <META name=keywords content=" ">
> <META name=description content=" ">
> then the page is indexed ok, but no excerpt is shown by htsearch with
> Just changing that to:
> <META name=keywords content="">
> <META name=description content="">
> clears the problem.
> How did I find this, and why does it matter?
> Well I'm working on an external conversion script which tries to extract
> the keywords and summary from WordPerfect documents. In real life such
> documents often have no summary or keywords and I was using a space as
> the default.
> I can work around this, so its no great deal, but the bug may have other
> consequences I havn't found yet.
> By the way, my script is based on conv_doc.pl and can be used in its
> place. I hope to send it in when I've finished polishing it.
The <META name=keywords content=" "> tag shouldn't cause any problems,
but the <META name=description content=" "> will be taken as the
document's meta description, even if it contains only a single space.
If you have use_meta_description set to true in your config file for
htsearch, then this 1 character description will override the excerpt
taken from the document body in search results. The meta description
tag should either provide a useful description, or be omitted altogether.
-- Gilles R. Detillieux E-mail: <firstname.lastname@example.org> 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
------------------------------------ To unsubscribe from the htdig mailing list, send a message to email@example.com You will receive a message to confirm this.
This archive was generated by hypermail 2b28 : Thu Feb 03 2000 - 13:19:54 PST