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 07:50 (GMT)

Number of topics: 107

-- PeterThoeny - 19 Apr 2000

TopicClassification:
BugResolved
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2000-04-19 - 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.