From feed245964052ea0385878b6374bb7841a264ff6 Mon Sep 17 00:00:00 2001 From: George Clark Date: Fri, 1 Apr 2016 21:49:05 -0400 Subject: [PATCH] Item13883: Major typo in VarSEARCH The scope is "topic", "text", or "all". Scope=title is ignored and will default to text. --- core/data/System/VarSEARCH.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/data/System/VarSEARCH.txt b/core/data/System/VarSEARCH.txt index 9abaf46eea..0b5f55cc84 100644 --- a/core/data/System/VarSEARCH.txt +++ b/core/data/System/VarSEARCH.txt @@ -1,4 +1,4 @@ -%META:TOPICINFO{author="ProjectContributor" date="1443119042" format="1.1" version="1"}% +%META:TOPICINFO{author="ProjectContributor" date="1459561702" format="1.1" version="1"}% %META:TOPICPARENT{name="Macros"}% ---+ SEARCH -- search content Inline search, shows a search result embedded in a topic @@ -17,7 +17,7 @@ Inline search, shows a search result embedded in a topic A topic, a topic with asterisk wildcards, or a list of topics separated by comma.
*Note* this is a list of *topic names* and must *not* include web names. Adding a topic restriction to a search can greatly improve the search performance. | All topics in a web | | =excludetopic= | Exclude topics from search e.g.
\ =excludetopic="Web*"=
=excludetopic="%HOMETOPIC%, WebChanges"=
A topic, a topic with asterisk wildcards, or a list of topics separated by comma.
*Note* this is a list of *topic names* and must *not* include web names. | | - | =scope= | Search topic name (="title"=); the body (="text"=) of the topic; or title and body (="all"=) | =text= | + | =scope= | Search topic name (="topic"=); the body (="text"=) of the topic; or name and body (="all"=) | =text= | | =type= | Control how the search is performed when =scope="text"= or =scope="all"=
="keyword"= - use Google-like controls as in =soap "web service" -shampoo=; searches word parts: using the example, topics with "soapsuds" will be found as well, but topics with "shampoos" will be excluded
="word"= - identical to =keyword= but searches whole words: topics with "soapsuds" will not be found, and topics with "shampoos" will not be excluded
="literal"= - search for the exact string, like =web service=
="regex"= - use a RegularExpression search like =soap;web service;!shampoo=; to search on whole words use =\bsoap\b=
="query"= - [[query search]] of form fields and other meta-data, like =(Firstname='Emma' OR Firstname='John') AND Lastname='Peel'= | =%SEARCHVARDEFAULTTYPE%= [[%WIKIPREFSTOPIC%][preferences]] setting (currently =%SEARCHVARDEFAULTTYPE%=) | | =order= | Sort the results of search by the topic names (="topic"=), topic creation time (="created"=), last modified time (="modified"=), last editor's WikiName (="editby"=), or named field of DataForms (="formfield(name)"=). The sorting is done web by web; if you want to sort across webs, create a [[FormattedSearch][formatted]] table and sort it with TablePlugin's initsort. Note that dates are sorted most recent date *last* (i.e at the bottom of the table).
The web order is always alphabetical. When ordered by =topic= the result is first ordered by web and then by topic. | =topic= | | =limit= | A number will limit the number of topics from which results will be returned. This is done after sorting if =order= is specified. Note that this does not limit the number of hits from the same topic when you have multiple="on". | =all= |