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
--
TamsinTweddell - 04 Dec 2007
Answer
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