Feature Proposal: Add excludeweb parameter to SEARCH
Updated 30 Apr 2005, with new patch
Motivation
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.
Implementation
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
Documentation
Updated documentation of
TWikiSearch, item
web:
| Parameter: |
Description: |
Default: |
web="Name" web="Main, Know" web="all" web="all,-Main" |
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