Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux
Web server: Apache
Perl version: 5.8
Client OS: Windows XP
Web Browser: Firefox 3.0
Categories: Platform, Installation, Search

-- StuartBell - 01 Jul 2008

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.

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

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