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
--
DavidFerrington - 05 Jan 2007
Answer
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