Tags:
create new tag
view all tags

SID-00057: Boolean "OR" search

Status: Answered Answered TWiki version: 4.2.4 Perl version: 5
Category: CategorySearch Server OS: Fedora 10 Last update: 16 years ago

i need to do a formatted search of a form using an "OR" condition, of a two formfields.... i see and example where used and "AND" condition and tha was represented for an ";" sorry for my english i hope someone could understandme

-- PedroValenzuela - 27 Jan 2009

Discussion and Answer

OR es con una barra horizontal ( | ). Type debe ser "regex" (eso está en RegularExpression)

%SEARCH{ "esto|OrEstoOtro" type="regex" ...

-- EnriqueCadalso - 30 Jan 2009

Thank you Enrique. In English for non-Spanish speaking people:

In a RegularExpression search, an OR search can be done using parenthesis and vertical bars. To search for "one" AND ("two" OR "three") you can specify this regular expression search: %SEARCH{ "one;(two|three)" type="regex" .... Note that the semicolon specifies and AND search; it is a TWiki specific extension.

You can also use SQL-like queries, see QuerySearch.

Related: VarSEARCH, FormattedSearch, SearchPatternCookbook, QuerySearch, QuerySearchPatternCookbook, RegularExpression

-- PeterThoeny - 01 Feb 2009

-- PedroValenzuela - 02 Feb 2009

      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 "OR" search
SupportCategory CategorySearch
TWiki version 4.2.4
Server OS Fedora 10
Web server Apache
Perl version 5
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2009-02-02 - PedroValenzuela
 
  • 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.