SID-00974: Formatted Search Results Display Hits and Search Term
| Status: |
Answered |
TWiki version: |
5.0.0 |
Perl version: |
|
| Category: |
CategorySearch |
Server OS: |
Redhat Linux 7.5 |
Last update: |
15 years ago |
An odd problem that I cannot figure out (I should add that I previously worked on TWiki 4.1, and am now setting up a new TWiki in 5.0).
I am setting up a formatted search on my
WebHome page to retrieve topics based on a form field - I've set this up before, so I'm pretty sure the code is correct. However, instead of just displaying the topics in a bulleted list, I'm also getting a display of the term searched, and the number of hits returned. Is this somehow related to using query search?
What I see:
Search: Category='How To'
* CategoriesList
* CommentBoxesHowTo
* HowtoUseTopicTemplates
* TableofContentsHowTo
* WebTopicEditTemplate
Number of topics: 5
What I coded:
%SEARCH{ type="query" "Category='How To'" web="Newhelp" exclude="WebHome" format=" * $topic" }%
I would like to get rid of the "Search: Category='How To'" and "Number of topics: 5"
--
PhilGochenour - 2010-09-21
Discussion and Answer
To get a proper bullet: Specify exactly three leading spaces before the asterisks:
format=" * $topic"
To get rid of the noise: Add parameter
nonoise="on"
You might want to narrow down on the search, meaning, you can specify a search string as the nameless parameter in
%SEARCH.
Details in
VarSEARCH,
FormattedSearch,
QuerySearch.
--
PeterThoeny - 2010-09-21
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.