Question
Hi there,
My "web" search doesn't appear to be working at a body level when searching for key words in topics.
The only results I can get it to come back with is topic titles, but it fails to pick up any words within a topic body.
My configure page is returing no warnings or errors so I am assuming that everything is working fine and well.
Any ideas as to what could be causing this?
Thanks,
Stuart
Environment
--
StuartBell - 01 Jul 2008
Answer
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.
This usually indicates that there is something broken with your
grep
commands. It is a well-known nuisance for platforms with non-Gnu-grep, but pretty strange for Linux. Just for the record: My settings in
bin/configure
are (you'll need to click the "expert" button to see these):
{RCS}{SearchAlgorithm} = TWiki::Store::SearchAlgorithms::Forking
{RCS}{QueryAlgorithm} = TWiki::Store::QueryAlgorithms::BruteForce
{RCS}{EgrepCmd} = /bin/grep -E %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%
{RCS}{FgrepCmd} = /bin/grep -F %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%
I
think these are pretty much TWiki's defaults. Please check and report whether you have different settings, or whether you can fix your issues with these settings!
--
HaraldJoerg - 02 Jul 2008
I checked my settings and they were set to the following:
egrep /bin/egrep /usr/share/man/man1p/grep.1p.gz /usr/share/man/man1/grep.1.gz
fgrep /bin/fgrep /usr/share/man/man1p/grep.1p.gz /usr/share/man/man1/grep.1.gz
Which were apparently what was set from the out-the-box install. We changed it to your suggestion and it worked! So, thanks very much for your input.
Regards.
--
StuartBell - 03 Jul 2008