Re: [htdig] HT-DIG


Subject: Re: [htdig] HT-DIG
From: Gilles Detillieux (grdetil@scrc.umanitoba.ca)
Date: Thu Aug 24 2000 - 08:24:46 PDT


According to Luke McManus:
> One of the search functionalities that I wish to include is a date
> range, which will restrict a search to stories say, between March 1999 and
> February 2000.
>
> Luckily our site is structured on a date-based directory system - today's
> news can be found in http://www.rte.ie/news/2000/0824/
>
> So, I need to allow users to select two dates on the page (say 1999/03 and
> 2000/02 to use the example above) and then restrict searches to any URLs
> containing the following
>
> 1999/03, 1999/04, 1999/05, 1999/06, 1999/07, 1999/08, 1999/09, 1999/10,
> 1999/11, 1999/12, 2000/01, 2000/02
>
> Anyone know a good way of doing this?

A planned feature for 3.2 is to limit search results to a particular date
range. However, it will be done based on the documents' modification
dates (which can be overridden with a meta tag) rather than the URL,
and it's not implemented yet.

The only way I can think of to do what you want right now is to use a
wrapper script that grabs the two user-selected dates from the query
string (using input parameter names you'd choose yourself to avoid
conflicts with existing parameters), and then generates a "restrict"
input parameter string with all the possible dates in that range, stuffs
it into the query string, and calls htsearch with that. There are
some contributed wrapper scripts in the ht://Dig distribution you could
perhaps use as a starting point.

-- 
Gilles R. Detillieux              E-mail: <grdetil@scrc.umanitoba.ca>
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 htdig-unsubscribe@htdig.org You will receive a message to confirm this. List archives: <http://www.htdig.org/mail/menu.html> FAQ: <http://www.htdig.org/FAQ.html>



This archive was generated by hypermail 2b28 : Thu Aug 24 2000 - 08:25:37 PDT