archive_me1Add my vote for this tag create new tag
, view all tags

Feature Proposal: Add excludeweb parameter to SEARCH

Updated 30 Apr 2005, with new patch


For the BacklinksTemplate I need to create 2 searches for the "All backlinks" search: one in the current web, and one in all webs except for the current web.

A parameter to exclude webs from a search is missing. This functionality might be handy in other cases as well.


Webs can be excluded by giving them a prefix - in the web parameter: %SEARCH{ search="my subject" web="all,-Main" }%

The attached patch is diffed to Search.pm SVN 4194.

Question: should UI/Search.pm be updated as well?

-- ArthurClemens - 30 Apr 2005


Updated documentation of TWikiSearch, item web:

Parameter: Description: Default:
web="Main, Know"
Wiki web to search: A web, a list of webs separated by comma, or all webs; webs to exclude from the search have a - (minus) prefix. [2] Current web

Note: the syntax is different than excludetopic
Note 2: see also my other search patch in WhyDoesWebSearchContainASearchQuery

-- ArthurClemens - 30 Apr 2005

Sensible enhancement!

-- PeterThoeny - 01 May 2005

Committed in DEVELOP SVN 4214.

-- ArthurClemens - 01 May 2005

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatdiff excludeweb.diff r3 r2 r1 manage 2.1 K 2005-04-30 - 22:37 ArthurClemens Adds support for excluding webs from SEARCH. Diffed against Search.pm, SVN 4194
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r10 - 2008-08-28 - TWikiJanitor
  • 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.