Skip to content

Commit

Permalink
Item13883: Clarify Query search documentation.
Browse files Browse the repository at this point in the history
Support/Question1916 pointed out that the Parent name can be stored with
or without the web name.
  • Loading branch information
gac410 committed Jan 14, 2018
1 parent aff7d63 commit 79e5b6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/data/System/QuerySearch.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" date="1480472285" format="1.1" version="1"}%
%META:TOPICINFO{author="ProjectContributor" date="1515946105" format="1.1" version="1"}%
%META:TOPICPARENT{name="UserDocumentationCategory"}%
%STARTINCLUDE%
---+ Query Search
Expand Down Expand Up @@ -234,9 +234,9 @@ will return an array of the values of the Published field in all versions author
* =lc(name)=~'.*ann.*'= - Would match Anne, Maryann, !MaryAnn, !AnnMarie...

---+++ Search examples
Find all topics that are children of this topic in the current web
Find all topics that are children of this topic in the current web. (The parent can be stored with or without the web name. The web name is typically added if a topic or its parent is moved/renamed.)
<verbatim class="tml">
%SEARCH{"parent.name = '%TOPIC%'" web="%WEB%" type="query"}%
%SEARCH{"parent.name='%TOPIC%' OR parent.name='%WEB%.%TOPIC%'" web="%WEB%" type="query"}%
</verbatim>
Find all topics that have an attachment called 'grunge.gif'
<verbatim class="tml">
Expand Down

0 comments on commit 79e5b6d

Please sign in to comment.