Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, WebSearch
Server OS: Solaris 8
Web server: apache
Perl version:  
Client OS:  
Web Browser: Mozilla
Categories: Search

-- 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:

Results from Support web retrieved at 04:40 (GMT)

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

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2006-06-27 - ArthurClemens
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.