create new tag
, view all tags

Feature Proposal: Extend syntax of SEARCH variable to restrict search to specified TWikiForms field


A commom requirement in designing TWikiApplications is searching TWikiForms fields. At present, this can only be accomplished using very un-intuitive regular expression constructs.

I've been using these quite extensively for several years and still don't understand them. I simply copy and paste regexes I find in TWiki.org without really understanding how they work. I consider this the worst usability aspect of designing TWikiApplications which, as has been mentioned repeatedly of late, is probably the most important competitive feature of TWiki.


Extend the syntax of SEARCH variable to allow searching for specific text within a specificed TWikiForms field. Looking at current SEARCH syntax, it seems to me the most intuitive implementation of this would be to add a new parameter such as formfield="name". The would restrict the search for specificed "text" to incidences of that particular formfield.

-- LynnwoodBrown - 20 Apr 2005

Impact and Available Solutions

Note: Patch is attached as http://www.twiki.org/p/pub/Codev/SearchByFormField/twiki-foo-bar-patch.diff. The patch is against the TWikiAlphaRelease of 15 Feb 2004.


If necessary, user documentation of new features introduced by this proposal.


Example uses of features introduced by proposal.


Any comments on how the feature is implemented or could be improved


Another reason regex's are bad is because the SEARCH you write assumes a field ordering.

That said, IMO the FormQueryPlugin and esp. its underlying contrib should be just be brought into the core.

-- MartinCleaver - 20 Apr 2005

While I agree with you Martin, I think having this kind of option part of the basic SEARCH syntax is desirable as well. FormQueryPlugin does a lot more while this FeatureRequest seems like a logical, incremental extension of the basic search feature already in TWiki.

-- LynnwoodBrown - 20 Apr 2005

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2005-04-20 - LynnwoodBrown
  • 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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.