Tags:
create new tag
, view all tags

Question

Having been evaluating TWiki for some time on a temporary server, we are now setting up a permanent installation on another server. Everything appears to be working fine except SEARCH. JUMP works fine.

Using the WebSearch form, searching "Topic Title" gives the expected results. Searching "text body" gives zero results, even for keywords known to be present. ie %SEARCH {".*" scope="text" }% is returning zero results. This also means that WebChanges shows no changes.

SearchAlgorithm is set to TWiki::Store::SearchAlgorithms:Forking

Can you give some tips as to where we might begin looking for the problem/solution.

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: SpreadSheetPlugin, CommentPlugin, CompareRevisionsAddonPlugin, EditTablePlugin, EmptyPlugin, HistoryPlugin, InterwikiPlugin, PreferencesPlugin, RenderListPlugin, SlideShowPlugin, SmiliesPlugin, TablePlugin, TreePlugin, TwistyPlugin, WysiwygPlugin
Server OS: Linux 2.6.9-22.18.bz155725.elsmp (i386-linux-thread-multi)
Web server: Apache/2.0.52
Perl version: 5.008005 (linux)
Client OS:  
Web Browser:  
Categories: Search

-- TamsinTweddell - 04 Dec 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

The most probable explanation is that you have problems with your system's egrep and fgrep commands, as configured in {RCS}{EgrepCmd} and {RCS}{FgrepCmd}, respectively. This is unusual on Linux, but please double check these settings. Mine (Ubuntu Linux) are:

$TWiki::cfg{RCS}{EgrepCmd} = '/bin/grep -E %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%';
$TWiki::cfg{RCS}{FgrepCmd} = '/bin/grep -F %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%';

Minor note: Your search %SEARCH{".*" scope="text"}% probably doesn't do what you are expecting: You need to add type="regex" if you want to hit every topic.

-- HaraldJoerg - 04 Dec 2007

Closing, seems to be answered.

-- PeterThoeny - 02 Feb 2008

 
Change status to:
Topic revision: r3 - 2008-02-02 - 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.