Re: [htdig] multiple select keywords

Gilles Detillieux (
Wed, 18 Aug 1999 10:21:39 -0500 (CDT)

According to Kevin Quinn:
> I have a dynamic site published from a database that is indexed by htdig.
> For each object the keyword meta tag is inserted with the contents of every
> section and document type the object belongs to. Like so:
> I have two problems with this:
> 1) I cannot have two form inputs with the same name (the second gets lost)
> 2) I would like to have both selects as multiple selects
> I know multiple select is possible with exclude and restrict, but is not
> available for keywords.
> Does anyone have ideas as to how the above might be accomplished? I might
> even be coerced into throwing some money at the problem.

How much money is this worth to you? :)

--- htdig-3.1.2.bak/htsearch/ Thu Apr 8 07:41:03 1999
+++ htdig-3.1.2/htsearch/ Wed Aug 18 10:14:45 1999
@@ -174,7 +174,7 @@ main(int ac, char **av)
     if (input.exists("exclude"))
         config.Add("exclude", input["exclude"]);
     if (input.exists("keywords"))
- requiredWords.Create(input["keywords"], " \t\r\n");
+ requiredWords.Create(input["keywords"], " \t\r\n\001");
     if (input.exists("sort"))
         config.Add("sort", input["sort"]);

This should allow multiple keywords parameters in search forms. Planned
for 3.2 is some more consistent handling of all input parameters, which
I may or may not have time to implement before I leave on holidays in a
few weeks.

Gilles R. Detillieux              E-mail: <>
Spinal Cord Research Centre       WWW:
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 containing the single word unsubscribe in the SUBJECT of the message.

This archive was generated by hypermail 2.0b3 on Wed Aug 18 1999 - 08:23:11 PDT