Tags:
create new tag
view all tags

SID-01235: Boolean search to return list of topics based on categories

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Boolean search to return list of topics based on categories
SupportCategory CategorySearch
TWiki version 4.0.5
Server OS

Web server

Perl version

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2011-07-17 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.