NatSearch is heavily inspired by the PhotonSearch of the TWiki:Plugins/PhotonSkin.
NatSearch proceeds along the following lines:
"web"
if the search string is of the form "web.topic"
If only one topic was found in 2. or 3. then NatSearch jumps to that topic directly.
Option | Description |
---|---|
g | global search (default is local) |
l | local search |
u | case-sensitive search (default is to ignore case) |
A search string may consist of a list of terms that are retrieved. If a term shall contain spaces it can be surrounded by double quotes. Each term may be preceded with a minus (-) to exclude this term from the hit set.
Search | Description |
---|---|
TWikiUsers | if the current web is the Main go to the TWikiUsers |
if the current web is the TWiki go to the TWikiUsersGuide | |
g:twikiusers | list all topics in all webs whose name match "twikiusers" |
/TWikiUsers | list all topics that contain the word "TWikiUsers" |
gu:copyright | list all topics that contain the word "copyright" in lowercase |
g:copyright -webpref | list all topics that contain the word "copyright" but not "webpref" |
g:"Good morning" -natskin | list all topics that contain the term "Good morning" but not "natskin" |
Name | Description |
---|---|
NATSEARCHINCLUDEWEB | a regular expression that must match webs to be considered |
NATSEARCHEXCLUDEWEB | a regular expression that must not match a web |
NATSEARCHINCLUDETOPIC | a regular expression that must match a topic in the hit set |
NATSEARCHEXCLUDETOPIC | a regular expression that excludes a topic from the hit set |
NATSEARCHIGNORECASE | 'on' or 'off', the default case match mode |
NATSEARCHGLOBAL | 'on' searches in all public webs, 'off' restricts search to the current web (default) |
NATSEARCHCONTENT | 'on' searches content first, 'off' tries to find a matching topic name first (default), it will still GO to the named topic if it exists |
Furthermore, the WebPreferences variable NATSEARCHTEMPLATE
can be set to a template topic that
is used instead of the skin's search
template. This can be used in TWikiApplications to
define a customized look of search results.