Question
How can I limit the search for a text string in the children of a specific topic ina specific web?
I tried setting the topic and web variables in both the %SEARCH and the search form, and only the web variable is taken into account. DO I need to do a nested search using the parent/child relationship?
Environment
--
LyneLamoureux - 14 Dec 2004
Answer
Try this:
%SEARCH{"META.TOPICPARENT.name=\"ParentTopicName\";mysearchstring" web="Main" type="regex" scope="text"}%
Let me know if it works so I can close this topic.
--
SamHasler - 18 Dec 2004
Substituted my info for the
ParentTopicName, and searchstring, and it doesn't work. No topics are returned when I use a text string that I know is in one of the pages.
--
LyneLamoureux - 11 Jan 2005
You probably need to upgrade to
TWikiRelease02Sep2004.
Example search in this Support web:
%SEARCH{ "META.TOPICPARENT.name=\"WebHome\";rename" type="regex" scope="text" nosearch="on" nototal="on" }%
returns:
Question: I would like to have a Topic with links to other Topics. The links should not only call the other topic but also change the skin. Just adding ?skin print...
Question Is there any way to rename an existing web? I did not find any obvious way to do this. A workaround I have for now is to rename the web on disk, then add...
--
PeterThoeny - 11 Jan 2005
Will try the upgrade and get back to you (it might take awhile as this is a shared system). Thank you for your support and assistance.
--
LyneLamoureux - 11 Jan 2005
As of TWiki 4,
METASEARCH can be used to search for topic children. Example:
%METASEARCH{ type="parent" topic="WebHome" web=%WEB% }%
More info:
TWiki04.VarMETASEARCH
--
ArthurClemens - 27 Jun 2006