According to [EMAIL PROTECTED]:
> I just tried setting date_factor to give more recent pages more weight.  I 
> found that the top-returned documents are from way in the future (e.g. 
> 12-12-2005).  When I look at the file properties, they were all 
> 12-12-2003, which is when the file was created.  I looked in the metadata, 
> the DC.Date.Created, DC.Date.Issued, DC.Date.Modified were all also 
> 12-12-2003.  However the DC.Date.Review metadata is 12-12-2005, so I'm 
> guessing that is what htdig is using for date_factor.  Is this an htdig 
> bug?  Can I get around this problem somehow?

D'oh!  It's a bug alright!  You don't say which version of htdig you're
running, so I can't provide a patch for you, but I think the fix should
be just a matter of finding the following lines in htdig/HTML.cc:

                else if (metadatetags.CompareWord(cache) &&
                         config->Boolean("use_doc_date",0))

and changing them to this:

                else if (metadatetags.CompareWord(cache, which, length) &&
                         cache[length] == '\0' &&
                         config->Boolean("use_doc_date",0))

This is around line 846 in 3.2.0b5, or line 802 in 3.1.6 (which has a
couple other bugs related to meta date handling - see Date-viewing.0
and metadate.0 in ftp://ftp.ccsf.org/htdig-patches/3.1.6/).

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba  Winnipeg, MB  R3E 3J7  (Canada)


-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to