Tags:
create new tag
, view all tags
Discovered on this TWiki.
The scope attribute appears not to work when given an explicit value of "topic". "topic" and "title" logic reversed? Peter, I'll see if I can find this.

-- KevinKinnell - 14 Apr 2000


The scope tag in %SEARCH{"str" ...}% works like this: ( extract from wikicfg.pm )

	 if( $theScope eq "topic" ) {
		  $cmd = "$wiki::lsCmd *.txt | %GREP% %SWITCHES% '$theSearchVal'";
	 } else {
		  $cmd = "%GREP% %SWITCHES% -l '$theSearchVal' *.txt";
	 }

That means if you %SEARCH{"str" scope="topic" }% it will search the topic names, if you omit the scope tag or have any other value it will search the text body. In your case it looks like there is a problem with the 'ls *.txt | grep ...' shell command? Please check.

Here is a test to list up all topics that have 'bug' in it's name:
%SEARCH{"bug" scope="topic" nosummary="on" nosearch="on"}%

Results from Codev web retrieved at 12:59 (GMT)

Number of topics: 105

-- PeterThoeny - 19 Apr 2000

Topic revision: r2 - 2000-04-19 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.