Skip to content

Commit

Permalink
Item13883: Major typo in VarSEARCH
Browse files Browse the repository at this point in the history
The scope is "topic", "text", or "all".    Scope=title is ignored
and will default to text.
  • Loading branch information
gac410 committed Apr 2, 2016
1 parent c01c51e commit 322dc1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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
Expand All @@ -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. <br> *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. <br> \
=excludetopic="Web*"= <br /> =excludetopic="%HOMETOPIC%, <nop>WebChanges"= <br> A topic, a topic with asterisk wildcards, or a list of topics separated by comma.<br> *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"= <br /> ="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 <br /> ="word"= - identical to =keyword= but searches whole words: topics with "soapsuds" will not be found, and topics with "shampoos" will not be excluded <br /> ="literal"= - search for the exact string, like =web service= <br /> ="regex"= - use a RegularExpression search like =soap;web service;!shampoo=; to search on whole words use =\bsoap\b= <br /> ="query"= - [[query search]] of form fields and other meta-data, like =(Firstname='Emma' OR Firstname='John') AND Lastname='Peel'= | =%<nop>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). <br /> 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= |
Expand Down

0 comments on commit 322dc1e

Please sign in to comment.