Tags:
create new tag
, view all tags

Question

I'm using TWiki-4.2.0, Tue, 22 Jan 2008, build 16278, Plugin API version 1.2 (for more info: configure.html).

When I use simple/advanced search, it find words that appear in page names, but not words from the page body. For example, if the page name is MyPage, and the page itself contains the text "This is my page", the search tool will find the page according to the word "My", but will fail to find it by the word "This".

Thanks,

Erez

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: CentOS Linux 5.2
Web server: apache
Perl version: v5.8.8
Client OS: Kubuntu Linux 8.04
Web Browser: Firefox 3
Categories: Search

-- ErezZilber - 26 Oct 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.

What is the search query you use?

-- ArthurClemens - 26 Oct 2008

Are you setting the scope option? It almost sounds like you're searching the titles: perhaps counter-intuitively, scope="topic" doesn't search the text of the topic, you need scope="text" (or even no scope defined, since that's the default). See VarSEARCH.

-- SeanCMorgan - 26 Oct 2008

I'm not sure that I understand how to use the information in the VarSEARCH page. I'm talking about the search box that appears on the upper-right side of the page. Can I configure this search box? Is it in some config file?

-- ErezZilber - 05 Nov 2008

These errors are almost always related to problems with the definition of the grep command in /bin/configure. You need to click the infamous "Yes, I've read all the documentation" button or simply visit /bin/configure?expert=1. From a first inspection of your attachment it looks like the values for {RCS}{EgrepCmd} and {RCS}{FgrepCmd} have been changed in a way which does not work because the necessary parameters (an unintellegible gibberish looking like %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F% are missing.

-- HaraldJoerg - 05 Nov 2008

Also check the SEARCHSTOPWORDS declared on TWiki.TWikiPreferences. By default the word "this" is included in the list of excluded words.

-- EnriqueCadalso - 05 Nov 2008

I suspect that this is caused by a grep configure issue as Harald described. Here are the proper settings taken from TWiki.cfg:

$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%';

-- PeterThoeny - 05 Nov 2008

Thanks. Peter's suggestion fixed my problem.

-- ErezZilber - 06 Nov 2008

Glad it worked out. Closing this questtion...

-- PeterThoeny - 07 Nov 2008

 
Change status to:
Topic attachments
I Attachment Action Size Date Who Comment
HTMLhtml configure.html manage 163.0 K 2008-10-26 - 11:52 ErezZilber configure.html
Topic revision: r9 - 2008-11-07 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, 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.