Tags:
search1Add my vote for this tag create new tag
view all tags

Question

Search by Text Body is not returning any results and I have verified that the word I am searching for "test" does appear in the body of several topics in Main web and others.

Search by Topic title works (current web and all public webs).

Search by Topic title and Text Body returns only the Topic Title matches.

To my knowledge, this has never worked.

I have tried both while not authenticated (TwikiGuest) and while authenticated as a user in the TwikiAdminGroup. I do not think it is an authentication issue.

I have attached my configuration output.

  • TWikiConfiguration.htm
  • DOCUMENT_ROOT C:/atest-main/autoweb/server/htdocs/ (could this be the problem?)
  • QUERY_STRING (could this be the problem?)
  • {Site}{LocaleRegexes} tried with this checked and not checked
  • {UseLocale} tried with this checked and not checked (get Couldn't read TWiki {LocalesDir}! with it unchecked)
  • maybe the issue is in the localization settings? the users are all English

I have checked the logs in C:\TWiki401\data and didnt see anything interesting:

22 Mar 2006 - 11:18 AnnBrady view WebSearch   149.98.156.96
22 Mar 2006 - 11:24 TWikiGuest view WebSearch Mozilla 149.98.158.119

I did not have a warn log in C:\TWiki401\data.

My apache error log has this warning:

[Wed Mar 22 11:31:55 2006] [warn] The ScriptAlias directive in C:/Program Files/Apache Group/Apache2/conf/httpd.conf at line 534 will probably never match because it overlaps an earlier Alias.

which relates to:

ScriptAlias /cgi-bin/ "C:/atest-main/autoweb/server/cgi-bin/"
ScriptAlias /twiki/bin/ "c:/twiki401/bin/"   # line 534

<Directory "C:/atest-main/autoweb/server/cgi-bin/">
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>
<Directory "C:/twiki401/bin">
    Options +ExecCGI -Indexes
    SetHandler cgi-script
    AllowOverride All
    Allow from all
</Directory>

The apache access log shows this when I search:

150.221.20.92 - - [22/Mar/2006:11:35:47 -0500] "POST /cgi-bin/client_request.cgi HTTP/1.1" 200 2
149.98.156.96 - - [22/Mar/2006:11:35:46 -0500] "GET /twiki/bin/view.cgi/Main/WebSearch?search=test&scope=text&web=on HTTP/1.1" 200 21032
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/PatternSkin/prototype.js HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TWikiJavascripts/twiki.js HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/PatternSkin/pattern.js HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TwistyContrib/twist.js HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TWikiLogos/T-logo-140x40-t.gif HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TwistyContrib/twist.css HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/PatternSkin/layout.css HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TWikiDocGraphics/logout.gif HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/PatternSkin/style.css HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/PatternSkin/colors.css HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/PatternSkin/print.css HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TWikiDocGraphics/arrowright.gif HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/PatternSkin/TWiki_header.gif HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TWikiDocGraphics/searchtopic.gif HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TWikiDocGraphics/home.gif HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/PatternSkin/gradient_blue.jpg HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/PatternSkin/bullet-blue.gif HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/PatternSkin/gradient_yellow.jpg HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TWikiDocGraphics/person.gif HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TWikiDocGraphics/group.gif HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TWikiDocGraphics/index.gif HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TWikiDocGraphics/changes.gif HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TWikiDocGraphics/notify.gif HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TWikiDocGraphics/wrench.gif HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TWikiDocGraphics/statistics.gif HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TWikiDocGraphics/web-bg.gif HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TWikiDocGraphics/web-bg-small.gif HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TWikiDocGraphics/down.gif HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TWikiDocGraphics/indexlist.gif HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/PatternSkin/striped_blue.gif HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TWikiDocGraphics/filter.gif HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TWikiDocGraphics/recentchanges.gif HTTP/1.1" 304 -
149.98.156.96 - - [22/Mar/2006:11:35:53 -0500] "GET /twiki/pub/TWiki/TWikiLogos/T-logo-80x15.gif HTTP/1.1" 304 -

Preferences

  • I did not initially modify any of the Search Preferences
  • TWiki/WebPreferences
      #Set DENYWEBVIEW = 
      #Set ALLOWWEBVIEW = 
      #Set DENYWEBCHANGE = 
      Set ALLOWWEBCHANGE = TWikiAdminGroup 
      #Set DENYWEBRENAME = 
      Set ALLOWWEBRENAME = TWikiAdminGroup 
  • TWiki/TWikiPreferences
  • I have tried (none worked):
   * Set NOSEARCHALL = 
   * Set NOSEARCHALL = off
   # * Set NOSEARCHALL = 
  • I have set NOSEARCHALL = on for the sandbox web and verified this had an affect on the title search

Environment

TWiki version: 4.0.1
TWiki plugins: None
Server OS: Windows XP SP 1
Web server: Apache 2.0.55
Perl version: ActivePerl 5.8.7 Build 813
Client OS: Windows XP
Web Browser: Internet Explorer 6, Firefox 1.5 (does not matter)
Categories:  

-- AnnBrady - 22 Mar 2006

Answer

ALERT! 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.

Search on topic title working, and search on body not working is an indication that the external grep search is not working. In configure, check the {SafeEnvPath}, {RCS}{EgrepCmd}, {RCS}{FgrepCmd} settings.

-- PeterThoeny - 22 Mar 2006

thanks, that gave me something else to search around for. {RCS}{EgrepCmd} is now set to "c:\\cygwin\\bin\\grep" %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F% and {RCS}{FgrepCmd} "c:\\cygwin\\bin\\grep" %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%

search now works, hope I didn't break anything else. =)

-- AnnBrady - 22 Mar 2006

For anyone searching through configure, those settings are under "Store settings"

-- VickiBrown - 24 Mar 2006

An alternative for ppl not wanting to install cygwin might be the native Win32 version of egrep and fgrep tools from http://unxutils.sourceforge.net .
{RCS}{EgrepCmd} is e.g. set to C:/windows/egrep  %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%

-- AndreasNagl - 16 May 2006

I had this same problem, and it took a while to figure out why. My egrep and fgrep were in /usr/bin; my SafeEnvPath pointed to /usr/bin, and my EgrepCmd and FgrepCmd pointed to /usr/bin. I'm on TWiki-4.2.0, Tue, 22 Jan 2008, build 16278. AIX 5.3, Apache 1.3. In configure, I had three errors: diff, egrep, and fgrep not found on the current path. All three of those are world-readable and world-executable. The eventual solution: I had the AIX versions of egrep & fgrep, not the GNU versions. I had both versions of diff, but only the AIX version was in /usr/bin. I installed GNU grep, and changed my SafeEnvPath to /usr/bin:/opt/freeware/bin, and pointed EgrepCmd and FgrepCmd to /opt/freeware/bin. This was not enough -- I also had to reverse SafeEnvPath and put /opt/freeware/bin first.

-- JosephThvedt - 27 Jun 2008

Topic attachments
I Attachment History Action Size Date Who Comment
HTMLhtm TWikiConfiguration.htm r1 manage 160.7 K 2006-03-22 - 16:41 UnknownUser  
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2008-06-27 - JosephThvedt
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.