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