On Thu, 7 Feb 2002, Gilles Detillieux wrote: > Date: Thu, 7 Feb 2002 13:41:37 -0600 (CST) > From: Gilles Detillieux <[EMAIL PROTECTED]> > To: William R. Knox <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: [htdig-dev] Problems using date specific searches > > According to William R. Knox: > > I seem to be having a problem with date specific searches and the > > use_doc_date attribute in the new 3.1.6 release of ht://Dig - the files > > which I am indexing contain a header like so: > > > > <meta name="Date" content="2002-02-06"> > > > > and the configuration file I am using has the following line: > > > > use_doc_date: true > > > > but I still get back files based on the modification date instead of the > > meta Date tag. Am I using the wrong format for the meta tag? The following > > search: > > > > >http://xxxxxx.mitre.org/cgi-bin/htsearch?words=XXXXXX&restrict=directory/subdirectory&startday=7&startmonth=2&startyear=2002 > > > > returned a file with the meta tag above. Anyone have any ideas what I am > > doing wrong? My apologies for not perusing the source code, but I am not > > at all familiar with C++, so my initial searches came up with nothing > > useful. Thanks in advance. > > Arrgh! Sorry, my fault. I introduced new date parsing code in htdig > a couple months ago, and I thought I had tested it but evidently not > well enough. On line 1142 of htdig/Retriever.cc, change the line: > > while (isspace(*s)) > > to: > > while (*s == '-' || isspace(*s))
I hate to say this so soon, but would you mind submitting a patch;( Also please check: ftp://ftp.ccsf.org/htdig-patches/3.1.6/timet_enddate.0 Regards, Joe -- _/ _/_/_/ _/ ____________ __o _/ _/ _/ _/ ______________ _-\<,_ _/ _/ _/_/_/ _/ _/ ......(_)/ (_) _/_/ oe _/ _/. _/_/ ah [EMAIL PROTECTED] _______________________________________________ htdig-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/htdig-dev