Tags:
create new tag
view all tags

Question

The %SEARCH{}% function does not work within TWikiGroups. It does not list any groups. How can I find out the reason for this problem?

Environment

TWiki version: TWikiRelease04x00x02
TWiki plugins: SpreadSheetPlugin, CommentPlugin, EditTablePlugin, InterwikiPlugin, PreferencesPlugin, SlideShowPlugin, SmiliesPlugin, TablePlugin
Server OS: Sun Solaris
Web server: Apache 1.3.27
Perl version: 5.6.1
Client OS: Windows XP
Web Browser: Internet Explorer
Categories: Search

-- ThomasKurz - 26 Apr 2006

Answer

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.

If SEARCH doesn;t work anywhere, check that you have a GNU-compatible grep installed and selected in configure. Search problems in Solaris are usually a result of the wrong grep being used.

Assuming that you have got SEARCH working somewhere, check that you actually have some groups defined. The topics need to end in "Group" and the line * Set GROUP = is required. Then, check that the user who is trying to list the groups has VIEW access to all the group files.

-- CrawfordCurrie - 26 Apr 2006

This might be a different issue. The SEARCH in TWikiGroups is a topic search, e.g. grep is not involved. Not sure though what can cause this. Try WebSearch, with scope on "Text body" and then "Topic title" to test which one works.

-- PeterThoeny - 27 Apr 2006

The Result of WebSearch is that only the "Topic title" search works. With the configure script I get warnings for 'fgrep' and 'egrep' that they are not GNU: illegal option. Could this be the reason for the not working "Text body" search?

-- ThomasKurz - 27 Apr 2006

You need a GNU compatible grep. This is certainly why WebSearch isn't working. Peter is right about the search in TWikiGroups; it is a topic search. i have no idea why it isn't working (assuming it is still failing).

-- CrawfordCurrie - 27 Apr 2006

Just checked, TWikiGroups has a search on text body, not topic name (%SEARCH{"GROUP" topic="*Group" ...}%), e.g. your normal text body search does not work because you do not have a GNU compatible grep.

-- PeterThoeny - 28 Apr 2006

After installation of GNU grep the SEARCH function works. Thank you for the support.

I think it would be better to list GNU compatible fgrep, egrep under TWiki Server Requirements instead of fgrep, egrep. Shouldn't the configure script show an error message instead of a warning if grep was detected which is not compatible with GNU grep?

-- ThomasKurz - 28 Apr 2006

Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2006-09-11 - 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.