Tags:
create new tag
, view all tags

Question

I am using a meta data search where I am searching witin certain fields of a form. I want to know if I can do a nested search; that is, if I can search for entries with specific values from two fields of the form. right now I can do a simple search and my code is as follows: SEARCH{"^\%META\:FIELD\{name.*xxx*.xxx" scope="text" regex="on" nosummary="on" noheader="on" nosearch="on" nototal="on" format="...." }% so I want to extend this in order to search for entries with specific values from two fields. Thanks,

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  

-- MeteTuzcu - 19 Mar 2004

Answer

You are already using regex="on" so you can use the ";" separator to do an AND search. E.g. search for:

"META\:FIELD\{.*?FooName.*?FooValue;META\:FIELD\{.*?BarName.*?BarValue"

-- PeterThoeny - 20 Mar 2004

Topic revision: r2 - 2004-03-20 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.