Tags:
create new tag
view all tags

SID-00974: Formatted Search Results Display Hits and Search Term

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

      Change status to:
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.
SupportForm
Status Answered
Title Formatted Search Results Display Hits and Search Term
SupportCategory CategorySearch
TWiki version 5.0.0
Server OS Redhat Linux 7.5
Web server

Perl version

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2010-09-21 - PeterThoeny
 
  • 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-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.