Subject: Re: [htdig] FURTHER INFO - A tricky one for you - (x OR y OR z) AND rhubarb AND blah
From: Philip Coates (firstname.lastname@example.org)
Date: Wed Nov 03 1999 - 10:34:33 PST
Actually, before I get blasted with a whole pile of messages telling me to
RTFM as happened to some poor newbie on a PHP list the other day (well, one
RTFM and then a thread that lasted about two weeks...):
To refine my problem:
We have a requirement (don't ask me why, please...) to be able to search
JUST on keywords.
This is all OK so far; we are using a special PHP wrapper/parser script
which seems to work fine.
change to one affects the contents of the others. One of these pulldowns
refers to "Region", which is categorised pretty much by continent. Because
the region boundaries might be subject to change and we're into building
durable and scalable solutions it is necessary for the pages to be
catalogued with applicable countries in the keywords section:
eg.: for Europe we would have France, UK, Germany, etc...
for North America we would have US, Canada
and so on...
Is there a sensible way of setting up a search whereby someone enters Europe
in the first pulldown and the htsearch searches on:
(France OR UK OR ...and so on for the whole of Europe) AND x AND y
and... brace yourselves... how would this be done from the command line, as
we're working from a wrapper script?
I have some ideas, but the HTTP POST/GET syntax of boolean searches isn't
well documented, in fact I haven't seen much documentation for boolean
searches and parsing them at all on this site - not complaining, merely
making an observation...
I know there are simpler ways of doing this, such as just codifying the
pages by region rather than by country, but the requirement is that the
pages be marked up by country, not region, so....
From: Philip Coates <email@example.com>
To: firstname.lastname@example.org <email@example.com>
Date: Wednesday, November 03, 1999 5:38 PM
Subject: [htdig] A tricky one for you - (x OR y OR z) AND rhubarb AND blah
>Any ideas how a mixed-type boolean keyword search could be achieved in
>We have a requirement to enable a search on a database by keywords where
>There are three "meta-keywords" in three sections. The latter two of these
>"meta-keywords" are fine as they are - a search using AND on them will be
>fine. It is the first of the bunch that presents us with a sticky problem:
>This first "meta-keyword" is (a OR b OR c OR d OR e OR f)
>Is there any way to do this without running two searches one on top of the
>The search would look something like (ideally):
>keywords=(england OR france OR germany OR spain) AND sport AND football
>or something like that. Can this be done with ht://Dig or anything?
>Floor 2, Canberra House
>315-317 Regent St
>London W1R 7YB
>phone: 44(0)207 299 3425
>mobile: 44(0)7711 818 384
>To unsubscribe from the htdig mailing list, send a message to
>firstname.lastname@example.org containing the single word unsubscribe in
>the SUBJECT of the message.
To unsubscribe from the htdig mailing list, send a message to
email@example.com containing the single word unsubscribe in
the SUBJECT of the message.
This archive was generated by hypermail 2b25 : Wed Nov 03 1999 - 10:44:32 PST