SID-01235: Boolean search to return list of topics based on categories
| Status: |
Answered |
TWiki version: |
4.0.5 |
Perl version: |
|
| Category: |
CategorySearch |
Server OS: |
|
Last update: |
15 years ago |
I'm able to generate a list of topics based on one category:
%SEARCH{"CategoryHouse" nosearch="on" nosummary="on"}%
How do I search based on two or more categories (boolean)?
%SEARCH{"CategoryHouse" AND "CategoryAtlanta" nosearch="on" nosummary="on"}%
--
ScottTiner - 2011-07-16
Discussion and Answer
By the way, for newbies: Don't use the <verbatim> tag in your search code. I added it because I thought this Support forum used TWiki markup, but it looks like it doesn't.
--
ScottTiner - 2011-07-16
Do a
QuerySearch by adding
type="query". Example:
%SEARCH{ " text ~ '*CategoryHouse*' AND text ~ '*CategoryAtlanta*' " type="query" nonoise="on" }%=
(On comment box, it escapes %, <, > and a few other characters, which escapes a lot of
TML.)
--
PeterThoeny - 2011-07-17
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.