Tags:
create new tag
view all tags

Question

I want to perform a formatted search, which displays results as a list of all topic names of the first generation of a known topic (lets call it ParTop) i.e. only topics that have ParTop as their immediate parent. I want to further limit the search using form fields.

METASEARCH will list all children of a topic, but doesn't allow me to put further critia on the search. Putting the metasearch in a search doesn't work.

e.g.

%METASEARCH{ topic="DjfParent" type="parent"}% 
returns a list of children, but no way to limit result further
%SEARCH{ "DocTeam.*value\=.*ATeam;DocType.*value\=.*Rir;DocStatus.*value\=.*Active" regex="on" casesensitive="on" nototal="on" nosearch="on" format="   * $topic" }%
returns a list of all topics meeting form criteria, but all children etc
%SEARCH{ "DocTeam.*value\=.*ATeam;DocStatus.*value\=.*Active" regex="on" casesensitive="on" nototal="on" nosearch="on" format=" $percnt%METASEARCH{ topic=\"DjfParent\" type=\"parent\"} $nop% "}%
is the kind of query i think i need to do, but that just returns
%<a href= %<a href= %<a href=

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: SpreadSheetPlugin,CommentPlugin,EditTablePlugin,InterwikiPlugin,PreferencesPlugin,SlideShowPlugin,SmiliesPlugin,SpacedWiki WordPlugin,TablePlugin
Server OS: RedHat Linux 2.4.21-27
Web server: Apache 1.3.27
Perl version: 5.8.0
Client OS: XP-Pro
Web Browser: IE 6.0
Categories: Search

-- DavidFerrington - 05 Jan 2007

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

I used something like that, this list the first children. and a summare f.e.

%SEARCH{"META:TOPICPARENT.*%TOPIC%" format="   * $topic $summary" nosearch="on" nototal="on" regex="on" header="$n"}%
-- MathiasKrueger - 05 Jan 2007

This AND search should work:

%SEARCH{ "META\:TOPICPARENT.*\"DjfParent\";DocTeam.*value\=.*ATeam;DocStatus.*value\=.*Active" regex="on" casesensitive="on" nototal="on" nosearch="on" format="   * $topic" }%

-- PeterThoeny - 05 Jan 2007

Thanks very much Peter, that works very well - having looked up META:TOPICPARENT I now understand how this works - will this work for some time - I assume so.

-- DavidFerrington - 08 Jan 2007

Change status to:
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-01-08 - DavidFerrington
 
  • 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.